Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Update
iouyap
iouyap-0.95_log_error.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File iouyap-0.95_log_error.patch of Package iouyap
From f332ffe898ad6ee1de5c2c992998ffd11f2e28c6 Mon Sep 17 00:00:00 2001 From: Jerry Seutter <jseutter@gmail.com> Date: Sat, 15 Nov 2014 11:58:25 -0700 Subject: [PATCH] Clean up format specifiers in log_error calls --- iouyap.c | 8 ++++---- netmap.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iouyap.c b/iouyap.c index 3cb67d9..f487d46 100644 --- a/iouyap.c +++ b/iouyap.c @@ -417,7 +417,7 @@ foreign_listener (void *arg) } if (yap_verbose >= LOG_CRAZY) - debug_log_fmt ("received %d bytes (sfd=%d)\n", + debug_log_fmt ("received %zd bytes (sfd=%d)\n", bytes_received, port->sfd); @@ -455,7 +455,7 @@ foreign_listener (void *arg) { if (bytes_sent != -1) /* no error, shouldn't happen */ { - log_fmt ("sendto() only sent %d of %d bytes!" + log_fmt ("sendto() only sent %zd of %zd bytes!" " (sfd=%d)\n", bytes_sent, bytes_received, port->sfd); continue; @@ -533,7 +533,7 @@ iou_listener (void *arg) port = buf[IOU_DST_PORT]; if (yap_verbose >= LOG_CRAZY) - debug_log_fmt ("received %d bytes for port %d (sfd=%d)\n", + debug_log_fmt ("received %zd bytes for port %d (sfd=%d)\n", bytes_received, port, sfd); /* Send on the packet, minus the IOU header */ @@ -560,7 +560,7 @@ iou_listener (void *arg) { if (bytes_sent != -1) /* no error, shouldn't happen */ { - log_fmt ("write() only sent %d of %d bytes! (sfd=%d)\n", + log_fmt ("write() only sent %zd of %zd bytes! (sfd=%d)\n", bytes_sent, bytes_received, sfd); continue; } diff --git a/netmap.c b/netmap.c index 2233d87..bbdf257 100644 --- a/netmap.c +++ b/netmap.c @@ -369,7 +369,7 @@ dump_port_table (void) continue; our_port = unpack_port (i); - log_fmt ("%d:%d/%d talks to %d other node(s):\n", yap_appl_id, + log_fmt ("%d:%d/%d talks to %zd other node(s):\n", yap_appl_id, our_port.bay, our_port.unit, (port_table[i].segment->size - 1));
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor