From: compudj Date: Mon, 6 Mar 2006 17:17:38 +0000 (+0000) Subject: ltt_show_debug X-Git-Tag: v0.12.20~1905 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2d6c6b76f73668703e823a0638e7a67262668aee;p=lttv.git ltt_show_debug git-svn-id: http://ltt.polymtl.ca/svn@1584 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/genevent-new/genevent.c b/genevent-new/genevent.c index e640834d..3e48840e 100644 --- a/genevent-new/genevent.c +++ b/genevent-new/genevent.c @@ -2405,13 +2405,17 @@ int print_loader_c_user(facility_t *fac) fprintf(fd, "static void __attribute__((constructor)) __ltt_user_init(void)\n"); fprintf(fd, "{\n"); fprintf(fd, "\tint err;\n"); + fprintf(fd, "#ifdef LTT_SHOW_DEBUG\n"); fprintf(fd, "\tprintf(\"LTT : ltt-facility-%s init in userspace\\n\");\n", fac->name); + fprintf(fd, "#endif //LTT_SHOW_DEBUG\n"); fprintf(fd, "\n"); fprintf(fd, "\terr = ltt_register_generic(<T_FACILITY_SYMBOL, &facility);\n"); fprintf(fd, "\tLTT_FACILITY_CHECKSUM_SYMBOL = LTT_FACILITY_SYMBOL;\n"); fprintf(fd, "\t\n"); fprintf(fd, "\tif(err) {\n"); + fprintf(fd, "#ifdef LTT_SHOW_DEBUG\n"); fprintf(fd, "\t\tperror(\"Error in ltt_register_generic\");\n"); + fprintf(fd, "#endif //LTT_SHOW_DEBUG\n"); fprintf(fd, "\t}\n"); fprintf(fd, "}\n"); fprintf(fd, "\n");