summaryrefslogtreecommitdiffstats
path: root/src/monitor
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-02-17 16:40:01 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-03-17 14:40:19 +0100
commit87f8bee53ee1b4ca87b602ff8536bc5fd5b5b595 (patch)
treebb4ac04a7ec9983ac907e2d90955852be017ac25 /src/monitor
parentd81d8d3dc151ebc95cd0e3f3b14c1cdaa48980f1 (diff)
downloadsssd-87f8bee53ee1b4ca87b602ff8536bc5fd5b5b595.tar.gz
sssd-87f8bee53ee1b4ca87b602ff8536bc5fd5b5b595.tar.xz
sssd-87f8bee53ee1b4ca87b602ff8536bc5fd5b5b595.zip
Add missing new lines to debug messages
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/monitor')
-rw-r--r--src/monitor/monitor.c6
-rw-r--r--src/monitor/monitor_netlink.c16
2 files changed, 11 insertions, 11 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index 8845e4a37..e02397b6e 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -998,9 +998,9 @@ static int get_monitor_config(struct mt_ctx *ctx)
ret = add_implicit_services(ctx->cdb, ctx, &ctx->services);
if (ret != EOK) {
- DEBUG(SSSDBG_OP_FAILURE, "Failed to add implicit configured " \
- "services. Some functionality might " \
- "be missing");
+ DEBUG(SSSDBG_OP_FAILURE, "Failed to add implicit configured "
+ "services. Some functionality might "
+ "be missing\n");
}
badsrv = check_services(ctx->services);
diff --git a/src/monitor/monitor_netlink.c b/src/monitor/monitor_netlink.c
index 51e8ffe47..7e6f8cbbd 100644
--- a/src/monitor/monitor_netlink.c
+++ b/src/monitor/monitor_netlink.c
@@ -220,7 +220,7 @@ static bool has_phy_80211_subdir(const char *sysfs_path)
ret = snprintf(phy80211_path, SYSFS_SUBDIR_PATH_MAX,
"%s/%s", sysfs_path, PHY_80211_SUBDIR);
if (ret < 0) {
- DEBUG(SSSDBG_OP_FAILURE, "snprintf failed");
+ DEBUG(SSSDBG_OP_FAILURE, "snprintf failed\n");
return false;
} else if (ret >= SYSFS_SUBDIR_PATH_MAX) {
DEBUG(SSSDBG_OP_FAILURE, "path too long?!?!\n");
@@ -263,7 +263,7 @@ static bool discard_iff_up(const char *ifname)
ret = snprintf(path, SYSFS_IFACE_PATH_MAX, SYSFS_IFACE_TEMPLATE, ifname);
if (ret < 0) {
- DEBUG(SSSDBG_OP_FAILURE, "snprintf failed");
+ DEBUG(SSSDBG_OP_FAILURE, "snprintf failed\n");
return false;
} else if (ret >= SYSFS_IFACE_PATH_MAX) {
DEBUG(SSSDBG_OP_FAILURE, "path too long?!?!\n");
@@ -339,8 +339,8 @@ static bool nlw_accept_message(struct nlw_handle *nlp,
}
if (accept_msg == false) {
- DEBUG(SSSDBG_TRACE_ALL, "ignoring netlink message from PID %d",
- hdr->nlmsg_pid);
+ DEBUG(SSSDBG_TRACE_ALL,
+ "ignoring netlink message from PID %d\n", hdr->nlmsg_pid);
}
return accept_msg;
@@ -475,8 +475,8 @@ static int event_msg_recv(struct nl_msg *msg, void *arg)
creds = nlmsg_get_creds(msg);
if (!creds || creds->uid != 0) {
DEBUG(SSSDBG_TRACE_ALL,
- "Ignoring netlink message from UID %"SPRIuid,
- creds ? creds->uid : (uid_t)-1);
+ "Ignoring netlink message from UID %"SPRIuid"\n",
+ creds ? creds->uid : (uid_t)-1);
return NL_SKIP;
}
@@ -754,8 +754,8 @@ int setup_netlink(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
/* allocate the libnl handle/socket and register the default filter set */
nlctx->nlp = nlw_alloc();
if (!nlctx->nlp) {
- DEBUG(SSSDBG_CRIT_FAILURE, ("unable to allocate netlink handle: %s"),
- nlw_geterror(ENOMEM));
+ DEBUG(SSSDBG_CRIT_FAILURE,
+ "unable to allocate netlink handle: %s\n", nlw_geterror(ENOMEM));
ret = ENOMEM;
goto fail;
}