Index: debug.h =================================================================== RCS file: /var/cvsroot/gentoo-src/rc-scripts/src/core/debug.h,v retrieving revision 1.5 diff -u -b -B -w -p -r1.5 debug.h --- debug.h 17 Feb 2005 17:26:48 -0000 1.5 +++ debug.h 17 Feb 2005 18:41:56 -0000 @@ -29,9 +29,9 @@ # define DBG_MSG(_format, _arg...) \ do { \ int old_errno = errno; \ - printf("DEBUG(1): in %s, function %s(), line %i:\n", __FILE__, \ + fprintf(stderr, "DEBUG(1): in %s, function %s(), line %i:\n", __FILE__, \ __FUNCTION__, __LINE__); \ - printf("DEBUG(2): " _format, ## _arg); \ + fprintf(stderr, "DEBUG(2): " _format, ## _arg); \ errno = old_errno; \ if (0 != errno) { \ perror("DEBUG(3)"); \ @@ -47,9 +47,9 @@ * errors when reading the parent/child pipes */ \ /* if ((0 != errno) && (ESPIPE != errno)) { */ \ if (0 != errno) { \ - printf("DEBUG(1): in %s, function %s(), line %i:\n", \ + fprintf(stderr, "DEBUG(1): in %s, function %s(), line %i:\n", \ __FILE__, __FUNCTION__, __LINE__); \ - printf("DEBUG(2): " _format, ## _arg); \ + fprintf(stderr, "DEBUG(2): " _format, ## _arg); \ errno = old_errno; \ perror("DEBUG(3)"); \ /* perror() for some reason sets errno to ESPIPE */ \ @@ -61,7 +61,7 @@ #define FATAL_ERROR() \ do { \ int old_errno = errno; \ - printf("ERROR: file '%s', function '%s', line %i.\n", \ + fprintf(stderr, "ERROR: file '%s', function '%s', line %i.\n", \ __FILE__, __FUNCTION__, __LINE__); \ errno = old_errno; \ if (0 != errno) \ Index: misc.h =================================================================== RCS file: /var/cvsroot/gentoo-src/rc-scripts/src/core/misc.h,v retrieving revision 1.6 diff -u -b -B -w -p -r1.6 misc.h --- misc.h 16 Feb 2005 23:12:14 -0000 1.6 +++ misc.h 17 Feb 2005 18:41:56 -0000 @@ -46,7 +46,7 @@ #define EERROR(_args...) \ do { \ int old_errno = errno; \ - printf(" \033[31;01m*\033[0m " _args); \ + fprintf(stderr, " \033[31;01m*\033[0m " _args); \ errno = old_errno; \ } while (0) Index: simple-regex.c =================================================================== RCS file: /var/cvsroot/gentoo-src/rc-scripts/src/core/simple-regex.c,v retrieving revision 1.3 diff -u -b -B -w -p -r1.3 simple-regex.c --- simple-regex.c 16 Feb 2005 22:33:17 -0000 1.3 +++ simple-regex.c 17 Feb 2005 18:41:57 -0000 @@ -812,7 +812,7 @@ int main() { rcscript = fopen("acpid", "r"); if (NULL == rcscript) { - printf("Error opening file!\n"); + printf("%s", "Error opening file!"); return 1; } @@ -833,10 +833,10 @@ int main() { printf("match: '%s', %i\n", tmp_data.where, tmp_data.count); } else { - printf("No match\n"); + printf("%s", "No match\n"); } } else { - printf("Error during match\n"); + printf("%s", "Error during match\n"); } }