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>
2024-02-28 18:06:04 -08:00
Konrad Goławski
a15fa2014c
Increase event buffers sizes
...
Fixes GH-3359
2022-07-03 14:55:47 +02:00
jsteube
92f4ccce93
Increase buffer size for --example-hashes output
2019-04-08 17:36:26 +02:00
jsteube
05a01d3843
fix some datatypes
2018-02-08 19:13:29 +01:00
philsmd
ef6b20cc30
increase HCBUFSIZ_LARGE and truncate too large strings when copied to old_buf in events
2017-11-18 12:18:56 +01:00
jsteube
368f8b39bc
Add function to distinguish between warning and advice messages
2017-03-25 20:50:37 +01:00
jsteube
06c184aeea
Do not use NULL for va_* variadic functions
2017-02-11 11:51:46 +01:00
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.
2017-02-03 17:53:50 -08:00
philsmd
59e969ae65
event_log: do the string termination within event_log and use MIN () for the minimum size
2017-01-24 13:00:23 +01:00
Rosen Penev
66d4eea649
Fix %m with MinGW
2016-12-03 17:38:27 -08:00
Rosen Penev
f27675a0ec
Only apply gnu_printf to MinGW
2016-12-03 16:04:38 -08:00
Rosen Penev
5c0bd0a15f
Remove strerror in favor of thread safe %m
2016-12-02 21:26:10 -08:00
Rosen Penev
ee2c058dc6
Fix small format warning
2016-11-12 15:21:22 -08:00
jsteube
273b48de87
Fixed some missing break; in event.c to detect logging events
2016-11-12 15:39:15 +01:00
Jens Steube
3391dc49cd
Fix eventual null-pointer dereference
2016-11-11 15:30:31 +01:00
jsteube
e1010ffba1
Prepare library user access to OpenCL device information without running an attack
2016-10-23 17:31:22 +02:00
jsteube
8de576f5e9
Make it possible to access error messages without using an event
2016-10-13 19:16:24 +02:00
jsteube
386efb7fb5
Make use of EVENT_CRACKER_HASH_CRACKED, do not print a cracked hash to stdout directly, let the client do it
2016-10-12 11:27:10 +02:00
jsteube
42677df2a6
Start context-related logging with goal to get rid of logging.c
2016-10-08 23:16:40 +02:00