X-Git-Url: https://gapil.gnulinux.it/gitweb/?a=blobdiff_plain;f=sources%2Fmacros.h;fp=sources%2Fmacros.h;h=a82bdfe3247db447c0df1d9bdbc6bea176bfb165;hb=ee350fdc6822ea17657d0e1598faa3e56c8d6e9b;hp=46862926eefd88e432b1c9ba39b74e4fd1cf71ec;hpb=9bb8146d97c05e1be51c66fcf94aec2ede1f5971;p=gapil.git 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 */ /*