diff options
author | Tadas Slotkus <devtadas@gmail.com> | 2011-09-03 17:15:00 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2011-09-03 17:15:00 +0000 |
commit | ad470347fdf7da1da2b690c4ae0579b09b879bfa (patch) | |
tree | 47583e45701d93d66e0f8d34bf3d5c620305d71f /flash.h | |
parent | 3093f8f75e807a17637921f2e20a4d3c83f5fd62 (diff) | |
download | flashrom-ad470347fdf7da1da2b690c4ae0579b09b879bfa.tar.gz flashrom-ad470347fdf7da1da2b690c4ae0579b09b879bfa.tar.bz2 flashrom-ad470347fdf7da1da2b690c4ae0579b09b879bfa.zip |
Introduce ERROR_FATAL, abort upon failed chipset enables
Corresponding to flashrom svn r1426.
Signed-off-by: Tadas Slotkus <devtadas@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'flash.h')
-rw-r--r-- | flash.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -224,9 +224,12 @@ int write_buf_to_file(unsigned char *buf, unsigned long size, const char *filena #define OK 0 #define NT 1 /* Not tested */ -/* Something happened that shouldn't happen, but we can go on */ +/* Something happened that shouldn't happen, but we can go on. */ #define ERROR_NONFATAL 0x100 +/* Something happened that shouldn't happen, we'll abort. */ +#define ERROR_FATAL -0xee + /* cli_output.c */ /* Let gcc and clang check for correct printf-style format strings. */ int print(int type, const char *fmt, ...) __attribute__((format(printf, 2, 3))); |