mirror of
https://github.com/systemd/systemd.git
synced 2025-03-14 04:58:28 +03:00
Fix review comments in added debug log.
This commit is contained in:
parent
d66b0ed4cc
commit
fa8342228b
@ -3,9 +3,9 @@
|
||||
#include "alloc-util.h"
|
||||
#include "bus-internal.h"
|
||||
#include "bus-message.h"
|
||||
#include "escape.h"
|
||||
#include "hexdecoct.h"
|
||||
#include "string-util.h"
|
||||
#include "escape.h"
|
||||
|
||||
bool object_path_is_valid(const char *p) {
|
||||
const char *q;
|
||||
@ -94,12 +94,8 @@ bool interface_name_is_valid(const char *p) {
|
||||
|
||||
if (!good) {
|
||||
if (DEBUG_LOGGING) {
|
||||
_cleanup_free_ char *iface = NULL;
|
||||
iface = cescape(p);
|
||||
if (!iface)
|
||||
log_oom();
|
||||
else
|
||||
log_debug("The interface %s is invalid as it contains special character %c", iface, *q);
|
||||
_cleanup_free_ char *iface = cescape(p);
|
||||
log_debug("The interface %s is invalid as it contains special character", strnull(iface));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user