aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2020-10-12 08:16:14 +0200
committerAndreas Schneider <asn@cryptomilk.org>2020-10-12 08:24:45 +0200
commit8931845c35e78b5123d73430b071affd537d5935 (patch)
treee883113795db041a5046054164e94fb4ef7cc980
parent1e45be73b78273edad2d154152e609d51230521f (diff)
downloadcmocka-stable-1.1.tar.gz
cmocka-stable-1.1.tar.xz
cmocka-stable-1.1.zip
cmocka: Fix cm_print_error() in check_for_leftover_values(_list)stable-1.1
Fixes #26 (cherry picked from commit fe9663b80e1e505e93522ef75a660bedc32d7775)
-rw-r--r--src/cmocka.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmocka.c b/src/cmocka.c
index 7a1b4b6..72f4c74 100644
--- a/src/cmocka.c
+++ b/src/cmocka.c
@@ -894,7 +894,7 @@ static size_t check_for_leftover_values_list(const ListNode * head,
child_node = child_node->next, ++leftover_count) {
const FuncOrderingValue *const o =
(const FuncOrderingValue*) child_node->value;
- cm_print_error(error_message, "%s", o->function);
+ cm_print_error("%s: %s", error_message, o->function);
cm_print_error(SOURCE_LOCATION_FORMAT
": note: remaining item was declared here\n",
o->location.file, o->location.line);
@@ -926,7 +926,7 @@ static size_t check_for_leftover_values(
if (!list_empty(child_list)) {
if (number_of_symbol_names == 1) {
const ListNode *child_node;
- cm_print_error(error_message, "%s", value->symbol_name);
+ cm_print_error("%s: %s", error_message, value->symbol_name);
for (child_node = child_list->next; child_node != child_list;
child_node = child_node->next) {