From 997aa9ac188894b7f409ca7cb4fdc18d9f5ce331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Fri, 18 Feb 2005 11:05:33 +0000 Subject: [PATCH] error handling git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11410 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/os/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/libroot/os/debug.c b/src/kernel/libroot/os/debug.c index 821cbb2a35..745b197d15 100644 --- a/src/kernel/libroot/os/debug.c +++ b/src/kernel/libroot/os/debug.c @@ -107,7 +107,7 @@ _sPrintf(const char *fmt, ...) ret = vsnprintf(buffer, 256, fmt, ap); va_end(ap); - if (!ret) + if (ret < 0) return ret; _kern_debug_output(buffer);