X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2Fmacros.h;h=a82bdfe3247db447c0df1d9bdbc6bea176bfb165;hp=46862926eefd88e432b1c9ba39b74e4fd1cf71ec;hb=6f6eab8c180eab2c8456261cb21bfd1b8f719705;hpb=86de518c1856b983608c791e0bbbc265aaf8e9b4 diff --git a/sources/macros.h b/sources/macros.h index 4686292..a82bdfe 100644 --- a/sources/macros.h +++ b/sources/macros.h @@ -12,12 +12,17 @@ /* * debugging print definition */ +#ifdef IS_DAEMON +#define report(fmt, args...) UserNotify(fmt,##args) +#else #define report(fmt, args...) printf(fmt,##args) +#endif /* IS_DAEMON */ + #ifdef DEBUG /* done only on debugging */ #define debug report #else #define debug(fmt, arg...) -#endif +#endif /* DEBUG */ /*