From 3ec5e63ca7faf616afa60d178989566c5f8ccc5f Mon Sep 17 00:00:00 2001 From: Gerard Wagener Date: Tue, 12 Jan 2010 16:38:44 +0100 Subject: [PATCH] Add some logging information if file write failed --- arch/um/kernel/aha.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/um/kernel/aha.c b/arch/um/kernel/aha.c index 1de29ccfb91..f637fb6f7f5 100644 --- a/arch/um/kernel/aha.c +++ b/arch/um/kernel/aha.c @@ -23,6 +23,8 @@ inline void __aha_os_write_file_ck(int fd, char* buf, int cnt) { if ((cnt > 0) & (cnt < MAX_DUMP_BUF)){ os_write_file(fd,buf,cnt); + } else { + AHA_PRINTK("Failed to write information\n"); } }