projects
/
platform
/
upstream
/
cmocka.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62b876a
)
cmocka: Add printf attribute checking for vcm_print_error()
author
Andreas Schneider
<asn@cryptomilk.org>
Tue, 10 Feb 2015 07:11:30 +0000
(08:11 +0100)
committer
Andreas Schneider
<asn@cryptomilk.org>
Tue, 10 Feb 2015 14:49:30 +0000
(15:49 +0100)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
src/cmocka.c
patch
|
blob
|
history
diff --git
a/src/cmocka.c
b/src/cmocka.c
index
9e52015
..
885cf33
100644
(file)
--- a/
src/cmocka.c
+++ b/
src/cmocka.c
@@
-1546,6
+1546,9
@@
static void *libc_realloc(void *ptr, size_t size)
#define realloc test_realloc
}
+static void vcm_print_error(const char* const format,
+ va_list args) CMOCKA_PRINTF_ATTRIBUTE(1, 0);
+
/* It's important to use the libc malloc and free here otherwise
* the automatic free of leaked blocks can reap the error messages
*/