From ad470347fdf7da1da2b690c4ae0579b09b879bfa Mon Sep 17 00:00:00 2001 From: Tadas Slotkus Date: Sat, 3 Sep 2011 17:15:00 +0000 Subject: Introduce ERROR_FATAL, abort upon failed chipset enables Corresponding to flashrom svn r1426. Signed-off-by: Tadas Slotkus Acked-by: Uwe Hermann --- flash.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'flash.h') diff --git a/flash.h b/flash.h index 3d47a16..535c1b8 100644 --- a/flash.h +++ b/flash.h @@ -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))); -- cgit v1.1