summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-09-01 13:03:46 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-09-01 14:12:31 +0200
commitc40c279308e8202236cae8aad2396f573397bcb3 (patch)
treea257638c36a8dbfcbcaa90c81761b71e94df7eb5
parent0817c49e753d0e6fc24a301bc697a3c669ec2603 (diff)
eldbus_fake_server: fix string format usage
we know that there is no % etc. formatting in this string, however, we can just use the ck abort msg macro from libcheck directly.
-rw-r--r--src/tests/eldbus/eldbus_fake_server.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tests/eldbus/eldbus_fake_server.c b/src/tests/eldbus/eldbus_fake_server.c
index c9ef1d95a0..41d4b1f7a4 100644
--- a/src/tests/eldbus/eldbus_fake_server.c
+++ b/src/tests/eldbus/eldbus_fake_server.c
@@ -179,7 +179,6 @@ _fake_server_name_request_cb(void *data EINA_UNUSED,
179 if (ELDBUS_NAME_REQUEST_REPLY_PRIMARY_OWNER != reply) 179 if (ELDBUS_NAME_REQUEST_REPLY_PRIMARY_OWNER != reply)
180 { 180 {
181 const char *errcode = "Unknown reply"; 181 const char *errcode = "Unknown reply";
182 char errmsg[512];
183 switch (reply) 182 switch (reply)
184 { 183 {
185 case ELDBUS_NAME_REQUEST_REPLY_IN_QUEUE: 184 case ELDBUS_NAME_REQUEST_REPLY_IN_QUEUE:
@@ -194,9 +193,8 @@ _fake_server_name_request_cb(void *data EINA_UNUSED,
194 break; 193 break;
195 default: break; 194 default: break;
196 } 195 }
197 snprintf(errmsg, sizeof(errmsg), "Failed to start fake server: %s (%u)", 196 ck_abort_msg( "Failed to start fake server: %s (%u)",
198 errcode, reply); 197 errcode, reply);
199 ck_abort_msg(errmsg);
200 } 198 }
201 199
202 ecore_main_loop_quit(); 200 ecore_main_loop_quit();