summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/image/embedded.c5
-rw-r--r--src/interface/pxe/pxe_tftp.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/image/embedded.c b/src/image/embedded.c
index 97833130..0ce09783 100644
--- a/src/image/embedded.c
+++ b/src/image/embedded.c
@@ -4,7 +4,6 @@
* data structure.
*/
-#include <stdio.h>
#include <gpxe/image.h>
#include <gpxe/malloc.h>
#include <gpxe/uaccess.h>
@@ -25,8 +24,8 @@ struct image *embedded_image(void)
if ( reclaimed )
return NULL; /* Already reclaimed */
- printf("Embedded image: %d bytes at %p\n",
- eisize, _embedded_image_start);
+ DBG ( "Embedded image: %zd bytes at %p\n",
+ eisize, _embedded_image_start );
image = alloc_image();
if (!image)
diff --git a/src/interface/pxe/pxe_tftp.c b/src/interface/pxe/pxe_tftp.c
index 976298a8..f5e76206 100644
--- a/src/interface/pxe/pxe_tftp.c
+++ b/src/interface/pxe/pxe_tftp.c
@@ -189,7 +189,7 @@ static int pxe_tftp_open ( uint32_t ipaddress, unsigned int port,
if ( blksize < TFTP_DEFAULT_BLKSIZE )
blksize = TFTP_DEFAULT_BLKSIZE;
snprintf ( uri_string, sizeof ( uri_string ),
- "tftp://%s:%d%s%s?blksize=%d",
+ "tftp://%s:%d%s%s?blksize=%zd",
inet_ntoa ( address ), ntohs ( port ),
( ( filename[0] == '/' ) ? "" : "/" ), filename, blksize );
DBG ( " %s", uri_string );