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.
This commit is contained in:
Marcel Hollerbach 2020-09-01 13:03:46 +02:00
parent 0817c49e75
commit c40c279308
1 changed files with 1 additions and 3 deletions

View File

@ -179,7 +179,6 @@ _fake_server_name_request_cb(void *data EINA_UNUSED,
if (ELDBUS_NAME_REQUEST_REPLY_PRIMARY_OWNER != reply)
{
const char *errcode = "Unknown reply";
char errmsg[512];
switch (reply)
{
case ELDBUS_NAME_REQUEST_REPLY_IN_QUEUE:
@ -194,9 +193,8 @@ _fake_server_name_request_cb(void *data EINA_UNUSED,
break;
default: break;
}
snprintf(errmsg, sizeof(errmsg), "Failed to start fake server: %s (%u)",
ck_abort_msg( "Failed to start fake server: %s (%u)",
errcode, reply);
ck_abort_msg(errmsg);
}
ecore_main_loop_quit();