ssd0323: abort() instead of exit(1) on error.
To be more consistent with the newer ways of error signalling. That and SIGABT is easier to debug with than exit(1). Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
4e8f1be212
commit
b1c265424a
@ -19,7 +19,9 @@
|
||||
#define DPRINTF(fmt, ...) \
|
||||
do { printf("ssd0323: " fmt , ## __VA_ARGS__); } while (0)
|
||||
#define BADF(fmt, ...) \
|
||||
do { fprintf(stderr, "ssd0323: error: " fmt , ## __VA_ARGS__); exit(1);} while (0)
|
||||
do { \
|
||||
fprintf(stderr, "ssd0323: error: " fmt , ## __VA_ARGS__); abort(); \
|
||||
} while (0)
|
||||
#else
|
||||
#define DPRINTF(fmt, ...) do {} while(0)
|
||||
#define BADF(fmt, ...) \
|
||||
|
Loading…
Reference in New Issue
Block a user