summaryrefslogtreecommitdiff
path: root/tcpdump.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-04-22 14:36:50 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-04-22 14:43:05 +0200
commit51166947eea5867eab23960ba3abad06f70334c8 (patch)
treefbff47f21f9f1eb8e65c56b95f301c4260571f6d /tcpdump.c
parent763bef5f53e7776413961e26850f426863d520d3 (diff)
downloadtcpdump-51166947eea5867eab23960ba3abad06f70334c8.tar.gz
Show MemorySanitizer presence in version output
This may help to understand some bug reports. Moreover: s/CLang/Clang/ [skip ci]
Diffstat (limited to 'tcpdump.c')
-rw-r--r--tcpdump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tcpdump.c b/tcpdump.c
index 8ff5aca3..5e0afd24 100644
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -3128,7 +3128,9 @@ print_version(void)
(void)fprintf (stderr, "Compiled with AddressSanitizer/GCC.\n");
#elif defined(__has_feature)
# if __has_feature(address_sanitizer)
- (void)fprintf (stderr, "Compiled with AddressSanitizer/CLang.\n");
+ (void)fprintf (stderr, "Compiled with AddressSanitizer/Clang.\n");
+# elif __has_feature(memory_sanitizer)
+ (void)fprintf (stderr, "Compiled with MemorySanitizer/Clang.\n");
# endif
#endif /* __SANITIZE_ADDRESS__ or __has_feature */
}