mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
Add some logging information if file write failed
This commit is contained in:
parent
f8929ed150
commit
3ec5e63ca7
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue