From 0f3311c56fbf2deab367e7a8606bcc3b18c5cb94 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 14 Dec 2008 11:48:51 +0000 Subject: [PATCH] Send all debug to stderr. --- sbin/devd/devd.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index c6ac80c65173..c3f3ea97d587 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -307,7 +307,7 @@ void config::parse_one_file(const char *fn) { if (Dflag) - printf("Parsing %s\n", fn); + fprintf(stderr, "Parsing %s\n", fn); yyin = fopen(fn, "r"); if (yyin == NULL) err(1, "Cannot open config file %s", fn); @@ -325,7 +325,7 @@ config::parse_files_in_dir(const char *dirname) char path[PATH_MAX]; if (Dflag) - printf("Parsing files in %s\n", dirname); + fprintf(stderr, "Parsing files in %s\n", dirname); dirp = opendir(dirname); if (dirp == NULL) return;