projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43de53a
)
gpllib: Add default error handling (disk)
author
Pierre-Alexandre Meyer
<pierre@mouraf.org>
Tue, 21 Apr 2009 19:01:15 +0000
(12:01 -0700)
committer
Pierre-Alexandre Meyer
<pierre@mouraf.org>
Tue, 21 Apr 2009 19:01:15 +0000
(12:01 -0700)
In case of an unknown error, display a default message.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
com32/gpllib/disk/error.c
patch
|
blob
|
history
diff --git
a/com32/gpllib/disk/error.c
b/com32/gpllib/disk/error.c
index
469609b
..
763dcfd
100644
(file)
--- a/
com32/gpllib/disk/error.c
+++ b/
com32/gpllib/disk/error.c
@@
-1,3
+1,4
@@
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-119,5
+120,8
@@
void get_error(int status, char** buffer_ptr)
case 0xFF:
strncpy(buffer, "sense operation failed (hard disk)", buffer_size);
break;
+ default:
+ snprintf(buffer, buffer_size, "unknown error 0x%X, buggy bios?", status);
+ break;
}
}