Add some logging information if file write failed

This commit is contained in:
Gerard Wagener 2010-01-12 16:38:44 +01:00
parent f8929ed150
commit 3ec5e63ca7

View file

@ -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");
}
}