diff options
Diffstat (limited to 'sbin/growfs/debug.c')
-rw-r--r-- | sbin/growfs/debug.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/growfs/debug.c b/sbin/growfs/debug.c index c86ca54..d178a26 100644 --- a/sbin/growfs/debug.c +++ b/sbin/growfs/debug.c @@ -71,7 +71,10 @@ void dbg_open(const char *fn) { - dbg_log=fopen(fn, "a"); + if (strcmp(fn, "-") == 0) + dbg_log=fopen("/dev/stdout", "a"); + else + dbg_log=fopen(fn, "a"); return; } |