forked from enlightenment/efl
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:
parent
0817c49e75
commit
c40c279308
|
@ -179,7 +179,6 @@ _fake_server_name_request_cb(void *data EINA_UNUSED,
|
||||||
if (ELDBUS_NAME_REQUEST_REPLY_PRIMARY_OWNER != reply)
|
if (ELDBUS_NAME_REQUEST_REPLY_PRIMARY_OWNER != reply)
|
||||||
{
|
{
|
||||||
const char *errcode = "Unknown reply";
|
const char *errcode = "Unknown reply";
|
||||||
char errmsg[512];
|
|
||||||
switch (reply)
|
switch (reply)
|
||||||
{
|
{
|
||||||
case ELDBUS_NAME_REQUEST_REPLY_IN_QUEUE:
|
case ELDBUS_NAME_REQUEST_REPLY_IN_QUEUE:
|
||||||
|
@ -194,9 +193,8 @@ _fake_server_name_request_cb(void *data EINA_UNUSED,
|
||||||
break;
|
break;
|
||||||
default: 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);
|
errcode, reply);
|
||||||
ck_abort_msg(errmsg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ecore_main_loop_quit();
|
ecore_main_loop_quit();
|
||||||
|
|
Loading…
Reference in New Issue