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 "alloc-util.h"
|
||||||
#include "bus-internal.h"
|
#include "bus-internal.h"
|
||||||
#include "bus-message.h"
|
#include "bus-message.h"
|
||||||
|
#include "escape.h"
|
||||||
#include "hexdecoct.h"
|
#include "hexdecoct.h"
|
||||||
#include "string-util.h"
|
#include "string-util.h"
|
||||||
#include "escape.h"
|
|
||||||
|
|
||||||
bool object_path_is_valid(const char *p) {
|
bool object_path_is_valid(const char *p) {
|
||||||
const char *q;
|
const char *q;
|
||||||
|
@ -94,12 +94,8 @@ bool interface_name_is_valid(const char *p) {
|
||||||
|
|
||||||
if (!good) {
|
if (!good) {
|
||||||
if (DEBUG_LOGGING) {
|
if (DEBUG_LOGGING) {
|
||||||
_cleanup_free_ char *iface = NULL;
|
_cleanup_free_ char *iface = cescape(p);
|
||||||
iface = cescape(p);
|
log_debug("The interface %s is invalid as it contains special character", strnull(iface));
|
||||||
if (!iface)
|
|
||||||
log_oom();
|
|
||||||
else
|
|
||||||
log_debug("The interface %s is invalid as it contains special character %c", iface, *q);
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue