From 5180f0e9045050f9aedad3f620a0b243d99efbe1 Mon Sep 17 00:00:00 2001 From: "Christopher J. Morrone" <morrone2@llnl.gov> Date: Wed, 10 Jan 2007 00:36:34 +0000 Subject: [PATCH] Fix signedness of debug statements. --- src/api/allocate.c | 2 +- src/api/step_launch.c | 2 +- src/salloc/msg.c | 2 +- src/sattach/sattach.c | 2 +- src/srun/allocate.c | 2 +- src/srun/msg.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/api/allocate.c b/src/api/allocate.c index 83b86ede8ab..49e75ea0753 100644 --- a/src/api/allocate.c +++ b/src/api/allocate.c @@ -642,7 +642,7 @@ _accept_msg_connection(int listen_fd, } slurm_get_addr(&cli_addr, &port, host, sizeof(host)); - debug2("got message connection from %s:%d", host, port); + debug2("got message connection from %s:%hu", host, port); msg = xmalloc(sizeof(slurm_msg_t)); slurm_msg_t_init(msg); diff --git a/src/api/step_launch.c b/src/api/step_launch.c index 41029d8343f..09d42c3cc84 100644 --- a/src/api/step_launch.c +++ b/src/api/step_launch.c @@ -582,7 +582,7 @@ static int _message_socket_accept(eio_obj_t *obj, List objs) in /etc/hosts. */ uc = (unsigned char *)&((struct sockaddr_in *)&addr)->sin_addr.s_addr; port = ((struct sockaddr_in *)&addr)->sin_port; - debug2("got message connection from %u.%u.%u.%u:%d", + debug2("got message connection from %u.%u.%u.%u:%hu", uc[0], uc[1], uc[2], uc[3], ntohs(port)); fflush(stdout); diff --git a/src/salloc/msg.c b/src/salloc/msg.c index b41fa591604..e81725811a5 100644 --- a/src/salloc/msg.c +++ b/src/salloc/msg.c @@ -168,7 +168,7 @@ static int _message_socket_accept(eio_obj_t *obj, List objs) in /etc/hosts. */ uc = (unsigned char *)&((struct sockaddr_in *)&addr)->sin_addr.s_addr; port = ((struct sockaddr_in *)&addr)->sin_port; - debug2("got message connection from %u.%u.%u.%u:%d", + debug2("got message connection from %u.%u.%u.%u:%hu", uc[0], uc[1], uc[2], uc[3], ntohs(port)); fflush(stdout); diff --git a/src/sattach/sattach.c b/src/sattach/sattach.c index 20d07aef9ac..98fe02aaa16 100644 --- a/src/sattach/sattach.c +++ b/src/sattach/sattach.c @@ -474,7 +474,7 @@ static int _message_socket_accept(eio_obj_t *obj, List objs) in /etc/hosts. */ uc = (unsigned char *)&((struct sockaddr_in *)&addr)->sin_addr.s_addr; port = ((struct sockaddr_in *)&addr)->sin_port; - debug2("got message connection from %u.%u.%u.%u:%d", + debug2("got message connection from %u.%u.%u.%u:%hu", uc[0], uc[1], uc[2], uc[3], ntohs(port)); fflush(stdout); diff --git a/src/srun/allocate.c b/src/srun/allocate.c index ab66ae3aff4..0782e555820 100644 --- a/src/srun/allocate.c +++ b/src/srun/allocate.c @@ -280,7 +280,7 @@ _accept_msg_connection(slurm_fd slurmctld_fd, } slurm_get_addr(&cli_addr, &port, host, sizeof(host)); - debug2("got message connection from %s:%d", host, port); + debug2("got message connection from %s:%hu", host, port); msg = xmalloc(sizeof(slurm_msg_t)); slurm_msg_t_init(msg); diff --git a/src/srun/msg.c b/src/srun/msg.c index be20300738a..342a8aed644 100644 --- a/src/srun/msg.c +++ b/src/srun/msg.c @@ -999,7 +999,7 @@ _accept_msg_connection(srun_job_t *job, int fdnum) in /etc/hosts. */ uc = (unsigned char *)&cli_addr.sin_addr.s_addr; port = cli_addr.sin_port; - debug2("got message connection from %u.%u.%u.%u:%d", + debug2("got message connection from %u.%u.%u.%u:%hu", uc[0], uc[1], uc[2], uc[3], ntohs(port)); msg = xmalloc(sizeof(slurm_msg_t)); -- GitLab