aboutsummaryrefslogtreecommitdiffstats
path: root/src/image
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2008-06-27 22:35:26 +0100
committerMichael Brown <mcb30@etherboot.org>2008-06-27 22:35:26 +0100
commit2596a9aa9c25168e5e4f11cb42ebb3b85d51aae8 (patch)
treea3203940e415362f7e9cbaf12435ebe0b70b0abd /src/image
parentb7882065f5319d8d8f93eb4b879d816bb47bfe3a (diff)
downloadipxe-2596a9aa9c25168e5e4f11cb42ebb3b85d51aae8.tar.gz
[misc] Fix building on OpenBSD
OpenBSD throws compiler warnings that we can't reproduce on Linux, for some reason. Original patch from Dewey Hylton <dewey@hyltown.com>.
Diffstat (limited to 'src/image')
-rw-r--r--src/image/embedded.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/image/embedded.c b/src/image/embedded.c
index 978331304..0ce097833 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)