From 2d6c6b76f73668703e823a0638e7a67262668aee Mon Sep 17 00:00:00 2001 From: compudj Date: Mon, 6 Mar 2006 17:17:38 +0000 Subject: [PATCH] ltt_show_debug git-svn-id: http://ltt.polymtl.ca/svn@1584 04897980-b3bd-0310-b5e0-8ef037075253 --- genevent-new/genevent.c | 4 ++++ 1 file changed, 4 insertions(+) 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"); -- 2.34.1