mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-18 14:18:50 +03:00
firmware: Enable -Wformat and resolve all related compiler warnings
There have been tons of format-string related bugs in our code which we never discovered due to disabling -Wformat. Let's fix that. Change-Id: I5ec466361bcc526fac1f4897673264ee5af3458b
This commit is contained in:
@@ -62,7 +62,7 @@ int _talloc_free(void *ptr, const char *location)
|
||||
for (i = 0; i < ARRAY_SIZE(msgb_inuse); i++) {
|
||||
if (ptr == msgb_data[i]) {
|
||||
if (!msgb_inuse[i]) {
|
||||
TRACE_ERROR("%s: double_free by \r\n", __func__, location);
|
||||
TRACE_ERROR("%s: double_free by %s\r\n", __func__, location);
|
||||
} else {
|
||||
msgb_inuse[i] = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user