From b1f6e83380f78b9f375ac4007b4c2a87bd5a8d35 Mon Sep 17 00:00:00 2001 From: Marcelo Roberto Jimenez Date: Tue, 8 May 2007 23:20:48 +0000 Subject: [PATCH] Fix for debug printf format strings. size_t are not expected. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@181 119443c7-1b9e-41f8-b6fc-b9c35fce742c --- upnp/src/gena/gena_device.c | 2 +- upnp/src/genlib/net/uri/uri.c | 2 +- upnp/src/soap/soap_ctrlpt.c | 10 ++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/upnp/src/gena/gena_device.c b/upnp/src/gena/gena_device.c index ec2511a..0ee6a06 100644 --- a/upnp/src/gena/gena_device.c +++ b/upnp/src/gena/gena_device.c @@ -205,7 +205,7 @@ notify_send_and_recv( IN uri_type * destination_url, // connect DBGONLY( UpnpPrintf( UPNP_ALL, GENA, __FILE__, __LINE__, "gena notify to: %.*s\n", - destination_url->hostport.text.size, + (int)destination_url->hostport.text.size, destination_url->hostport.text.buff ); ) conn_fd = http_Connect( destination_url, &url ); diff --git a/upnp/src/genlib/net/uri/uri.c b/upnp/src/genlib/net/uri/uri.c index a6a1105..b12a705 100644 --- a/upnp/src/genlib/net/uri/uri.c +++ b/upnp/src/genlib/net/uri/uri.c @@ -393,7 +393,7 @@ DBGONLY( void print_uri( uri_type * in ) { ************************************************************************/ DBGONLY( void print_token( token * in ) { int i = 0; - printf( "Token Size : %d\n\'", in->size ); + printf( "Token Size : %zd\n\'", in->size ); for( i = 0; i < in->size; i++ ) { putchar( in->buff[i] );} putchar( '\'' ); putchar( '\n' );} diff --git a/upnp/src/soap/soap_ctrlpt.c b/upnp/src/soap/soap_ctrlpt.c index 73ed788..5d7966f 100644 --- a/upnp/src/soap/soap_ctrlpt.c +++ b/upnp/src/soap/soap_ctrlpt.c @@ -644,8 +644,9 @@ SoapSendAction( IN char *action_url, DBGONLY( UpnpPrintf( UPNP_INFO, SOAP, __FILE__, __LINE__, "path=%.*s, hostport=%.*s\n", - url.pathquery.size, url.pathquery.buff, - url.hostport.text.size, + (int)url.pathquery.size, + url.pathquery.buff, + (int)url.hostport.text.size, url.hostport.text.buff ); ) xml_start_len = strlen( xml_start ); @@ -800,8 +801,9 @@ SoapSendActionEx( IN char *action_url, DBGONLY( UpnpPrintf( UPNP_INFO, SOAP, __FILE__, __LINE__, "path=%.*s, hostport=%.*s\n", - url.pathquery.size, url.pathquery.buff, - url.hostport.text.size, + (int)url.pathquery.size, + url.pathquery.buff, + (int)url.hostport.text.size, url.hostport.text.buff ); ) xml_start_len = strlen( xml_start );