diff --git a/sched/db_dump.C b/sched/db_dump.C index 7758e2124f..f71a9f6963 100644 --- a/sched/db_dump.C +++ b/sched/db_dump.C @@ -113,7 +113,7 @@ public: f = fopen(filename.c_str(), "w"); if (!f) { - fprintf(stderr, "db_dump: Couldn't open %s for output\n", filename.c_str()); + log_messages.printf(SCHED_MSG_LOG::CRITICAL, "db_dump: Couldn't open %s for output\n", filename.c_str()); } fprintf(f, "\n<%s>\n", tag.c_str()