summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/main.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-09-01 13:58:05 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2017-09-01 14:24:06 +0200
commit9ae8e5a57300932a762e4a8465a58ee44b4cb306 (patch)
treee354c5d53c2889432b238089e00c8a65db197394 /src/ipcpd/normal/main.c
parentba693e3a7beb74ef8585346e887811ace7c6807a (diff)
downloadouroboros-9ae8e5a57300932a762e4a8465a58ee44b4cb306.tar.gz
ouroboros-9ae8e5a57300932a762e4a8465a58ee44b4cb306.zip
ipcpd: normal: Simplify enroll API
This will remove the dst parameter from enroll_boot, since it was only being used in logging. It also turns some other debug logs into info logs, and makes the component names as they are used in logs all lowercase.
Diffstat (limited to 'src/ipcpd/normal/main.c')
-rw-r--r--src/ipcpd/normal/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/normal/main.c b/src/ipcpd/normal/main.c
index fa31b9be..bc135c31 100644
--- a/src/ipcpd/normal/main.c
+++ b/src/ipcpd/normal/main.c
@@ -237,7 +237,7 @@ static int normal_ipcp_enroll(const char * dst,
}
/* Get boot state from peer. */
- if (enroll_boot(&er_conn, dst)) {
+ if (enroll_boot(&er_conn)) {
log_err("Failed to get boot information.");
goto fail_enroll_boot;
}
@@ -277,7 +277,7 @@ static int normal_ipcp_enroll(const char * dst,
if (connmgr_dealloc(AEID_ENROLL, &er_conn))
log_warn("Failed to deallocate enrollment flow.");
- log_dbg("Enrolled with %s.", dst);
+ log_info("Enrolled with %s.", dst);
info->dir_hash_algo = ipcpi.dir_hash_algo;
strcpy(info->dif_name, ipcpi.dif_name);