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
This commit is contained in:
Marcelo Roberto Jimenez 2007-05-08 23:20:48 +00:00
parent 00a33f5788
commit b1f6e83380
3 changed files with 8 additions and 6 deletions

View File

@ -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 );

View File

@ -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' );}

View File

@ -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 );