summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2016-03-08 17:24:31 -0500
committerSteve Dickson <steved@redhat.com>2016-03-08 17:24:31 -0500
commita59788d9de9333294c885b044b4dbc003c17db71 (patch)
tree225918762d5b58f50aaa3e07f8eaa226426eeef3
parent692081fea67bcb8abdfe079327c06bd37abd469d (diff)
downloadnfs-utils-a59788d9de9333294c885b044b4dbc003c17db71.tar.gz
nfs-utils-a59788d9de9333294c885b044b4dbc003c17db71.tar.xz
nfs-utils-a59788d9de9333294c885b044b4dbc003c17db71.zip
gssd: Corrected some types in the debugging code
Change some debugging levels in populate_port() to make easier to follow the code. Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/gssd/gssd_proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c
index 7496169..2dd06a7 100644
--- a/utils/gssd/gssd_proc.c
+++ b/utils/gssd/gssd_proc.c
@@ -231,7 +231,7 @@ populate_port(struct sockaddr *sa, const socklen_t salen,
switch (sa->sa_family) {
case AF_INET:
if (s4->sin_port != 0) {
- printerr(4, "DEBUG: port already set to %d\n",
+ printerr(2, "DEBUG: port already set to %d\n",
ntohs(s4->sin_port));
return 1;
}
@@ -239,7 +239,7 @@ populate_port(struct sockaddr *sa, const socklen_t salen,
#ifdef IPV6_SUPPORTED
case AF_INET6:
if (s6->sin6_port != 0) {
- printerr(4, "DEBUG: port already set to %d\n",
+ printerr(2, "DEBUG: port already set to %d\n",
ntohs(s6->sin6_port));
return 1;
}