Rosen Penev
cdd92f6de6
Fix MinGW printf formats
...
Based on various compilation flags, MinGW uses either gnu_printf or
printf (really ms_printf) internally which confuses the compiler when
encountering gnu formats. OTOH, clang under MinGW does not support
gnu_printf.
Just use the macro to handle this mess.
Also remove macro that was originally used to work around this. It's
wrong and should not be used.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
3 months ago
Konrad Goławski
a15fa2014c
Increase event buffers sizes
...
Fixes GH-3359
2 years ago
jsteube
92f4ccce93
Increase buffer size for --example-hashes output
5 years ago
jsteube
05a01d3843
fix some datatypes
6 years ago
philsmd
ef6b20cc30
increase HCBUFSIZ_LARGE and truncate too large strings when copied to old_buf in events
7 years ago
jsteube
368f8b39bc
Add function to distinguish between warning and advice messages
7 years ago
jsteube
06c184aeea
Do not use NULL for va_* variadic functions
7 years ago
Rosen Penev
2a2bd0e2b1
Restore strerror as %m is unsupported by the BSDs
...
The BSDs just print m instead of the actual error message. Benefit
is not worth the cost.
7 years ago
philsmd
59e969ae65
event_log: do the string termination within event_log and use MIN () for the minimum size
7 years ago
Rosen Penev
66d4eea649
Fix %m with MinGW
8 years ago
Rosen Penev
f27675a0ec
Only apply gnu_printf to MinGW
8 years ago
Rosen Penev
5c0bd0a15f
Remove strerror in favor of thread safe %m
8 years ago
Rosen Penev
ee2c058dc6
Fix small format warning
8 years ago
jsteube
273b48de87
Fixed some missing break; in event.c to detect logging events
8 years ago
Jens Steube
3391dc49cd
Fix eventual null-pointer dereference
8 years ago
jsteube
e1010ffba1
Prepare library user access to OpenCL device information without running an attack
8 years ago
jsteube
8de576f5e9
Make it possible to access error messages without using an event
8 years ago
jsteube
386efb7fb5
Make use of EVENT_CRACKER_HASH_CRACKED, do not print a cracked hash to stdout directly, let the client do it
8 years ago
jsteube
42677df2a6
Start context-related logging with goal to get rid of logging.c
8 years ago