diff options
author | hexcoder- <heiko@hexco.de> | 2019-08-11 15:40:53 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2019-08-11 15:40:53 +0200 |
commit | f63318a20f5ed974de5f8068a67d1292c64ca776 (patch) | |
tree | 458809445cf9b661c4d5cadf59b3fbf02ae44dab /debug.h | |
parent | f5d4912ca837d5efcd1aac4d436c7563c7614646 (diff) | |
download | afl++-f63318a20f5ed974de5f8068a67d1292c64ca776.tar.gz |
several code cleanups: avoid #if in macro parameters
avoid arithmetic with void pointers (undefined behaviour) avoid some shadowed variables
Diffstat (limited to 'debug.h')
-rw-r--r-- | debug.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/debug.h b/debug.h index a943a573..349aa650 100644 --- a/debug.h +++ b/debug.h @@ -199,7 +199,7 @@ #define FATAL(x...) do { \ SAYF(bSTOP RESET_G1 CURSOR_SHOW cRST cLRD "\n[-] PROGRAM ABORT : " \ cBRI x); \ - SAYF(cLRD "\n Location : " cRST "%s(), %s:%u\n\n", \ + SAYF(cLRD "\n Location : " cRST "%s(), %s:%d\n\n", \ __FUNCTION__, __FILE__, __LINE__); \ exit(1); \ } while (0) @@ -209,7 +209,7 @@ #define ABORT(x...) do { \ SAYF(bSTOP RESET_G1 CURSOR_SHOW cRST cLRD "\n[-] PROGRAM ABORT : " \ cBRI x); \ - SAYF(cLRD "\n Stop location : " cRST "%s(), %s:%u\n\n", \ + SAYF(cLRD "\n Stop location : " cRST "%s(), %s:%d\n\n", \ __FUNCTION__, __FILE__, __LINE__); \ abort(); \ } while (0) @@ -220,7 +220,7 @@ fflush(stdout); \ SAYF(bSTOP RESET_G1 CURSOR_SHOW cRST cLRD "\n[-] SYSTEM ERROR : " \ cBRI x); \ - SAYF(cLRD "\n Stop location : " cRST "%s(), %s:%u\n", \ + SAYF(cLRD "\n Stop location : " cRST "%s(), %s:%d\n", \ __FUNCTION__, __FILE__, __LINE__); \ SAYF(cLRD " OS message : " cRST "%s\n", strerror(errno)); \ exit(1); \ |