diff mbox

[3/5] ui/cocoa: Send warning message to stderr, not stdout

Message ID 1386543546-31919-4-git-send-email-peter.maydell@linaro.org
State New
Headers show

Commit Message

Peter Maydell Dec. 8, 2013, 10:59 p.m. UTC
Bring a warning message into line with the others in this file by
sending it to stderr, not stdout, and fix a typo in it.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 ui/cocoa.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/ui/cocoa.m b/ui/cocoa.m
index f55747f..c5ab5a4 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -240,7 +240,7 @@  static int cocoa_keycode_to_qemu(int keycode)
 {
     if((sizeof(keymap)/sizeof(int)) <= keycode)
     {
-        printf("(cocoa) warning unknow keycode 0x%x\n", keycode);
+        fprintf(stderr, "(cocoa) warning unknown keycode 0x%x\n", keycode);
         return 0;
     }
     return keymap[keycode];