utils: fix error logging in ASSERT_VALID_PATH_COMPONENT()
This commit is contained in:
@@ -2697,11 +2697,10 @@ ASSERT_VALID_PATH_COMPONENT (const char *name)
|
|||||||
|
|
||||||
return name;
|
return name;
|
||||||
fail:
|
fail:
|
||||||
if (name)
|
nm_log_err (LOGD_CORE, "Failed asserting path component: %s%s%s",
|
||||||
nm_log_err (LOGD_CORE, "Failed asserting path component: NULL");
|
NM_PRINT_FMT_QUOTED (name, "\"", name, "\"", "(null)"));
|
||||||
else
|
g_error ("FATAL: Failed asserting path component: %s%s%s",
|
||||||
nm_log_err (LOGD_CORE, "Failed asserting path component: \"%s\"", name);
|
NM_PRINT_FMT_QUOTED (name, "\"", name, "\"", "(null)"));
|
||||||
g_error ("FATAL: Failed asserting path component: %s", name ? name : "(null)");
|
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user