0xF1 ^ 0xFF, 0x77 ^ 0xFF, 0xBF ^ 0xFF, 0x17 ^ 0xFF, \
}
+static const char *help_msg =
+#ifdef LTTNG_EMBED_HELP
+#include <lttng-crash.1.h>
+#else
+NULL
+#endif
+;
+
/*
* Non-static to ensure the compiler does not optimize away the xor.
*/
static void usage(void)
{
- int ret = utils_show_man_page(1, "lttng-crash");
+ int ret = utils_show_help(1, "lttng-crash", help_msg);
if (ret) {
- ERR("Cannot view man page lttng-crash(1)");
+ ERR("Cannot show --help for `lttng-crash`");
perror("exec");
exit(EXIT_FAILURE);
}
ret = delete_dir_recursive(subpath);
free(subpath);
if (ret) {
- /* Error occured, abort traversal. */
+ /* Error occurred, abort traversal. */
goto end;
}
} else if (S_ISREG(st.st_mode)) {