summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarty Connor2006-09-27 06:04:55 +0200
committerMarty Connor2006-09-27 06:04:55 +0200
commit1da4faa8960f18f9a1c17a5b8f6227b2efd3f57f (patch)
tree372d5701fc91d9652128df48c6ee1b2deb4473ea /src
parenteth_ntoa and warnings cleanup (diff)
downloadipxe-1da4faa8960f18f9a1c17a5b8f6227b2efd3f57f.tar.gz
ipxe-1da4faa8960f18f9a1c17a5b8f6227b2efd3f57f.tar.xz
ipxe-1da4faa8960f18f9a1c17a5b8f6227b2efd3f57f.zip
include stdio.h to suppress printf warning, general warnings fixups
Diffstat (limited to 'src')
-rw-r--r--src/core/buffer.c1
-rw-r--r--src/core/dev.c2
-rw-r--r--src/core/device.c1
-rw-r--r--src/core/main.c8
-rw-r--r--src/core/malloc.c2
-rw-r--r--src/core/osloader.c1
6 files changed, 11 insertions, 4 deletions
diff --git a/src/core/buffer.c b/src/core/buffer.c
index 5c31ff8d..df08b66d 100644
--- a/src/core/buffer.c
+++ b/src/core/buffer.c
@@ -38,6 +38,7 @@
*
*/
+#include "stdio.h"
#include "stddef.h"
#include "string.h"
#include "io.h"
diff --git a/src/core/dev.c b/src/core/dev.c
index f03965d2..3d1fdd91 100644
--- a/src/core/dev.c
+++ b/src/core/dev.c
@@ -132,7 +132,7 @@ int find_by_driver ( struct bus_loc *bus_loc, struct bus_dev *bus_dev,
return 1;
} while ( bus_driver->next_location ( bus_loc ) );
- DBG ( "DEV found no device for driver %s\n" );
+ DBG ( "DEV found no device for driver %s\n", device_driver->name );
return 0;
}
diff --git a/src/core/device.c b/src/core/device.c
index e54ab297..dfbb997e 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -19,6 +19,7 @@
#include <gpxe/list.h>
#include <gpxe/tables.h>
#include <gpxe/device.h>
+#include "stdio.h"
/**
* @file
diff --git a/src/core/main.c b/src/core/main.c
index 30839401..e1ddc9dd 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -134,13 +134,15 @@ operations[] = {
#endif
-
-
+#if 0
static int main_loop(int state);
static int exit_ok;
-static int exit_status;
static int initialized;
+#endif
+
+static int exit_status;
+void test_dhcp ( struct net_device *netdev );
/**************************************************************************
MAIN - Kick off routine
diff --git a/src/core/malloc.c b/src/core/malloc.c
index bf4a8a39..14e54976 100644
--- a/src/core/malloc.c
+++ b/src/core/malloc.c
@@ -16,6 +16,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <stdio.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
@@ -77,6 +78,7 @@ void * alloc_memblock ( size_t size, size_t align ) {
*/
size = ( size + MIN_MEMBLOCK_SIZE - 1 ) & ~( MIN_MEMBLOCK_SIZE - 1 );
align_mask = ( align - 1 ) | ( MIN_MEMBLOCK_SIZE - 1 );
+
DBG ( "Allocating %#zx (aligned %#zx)\n", size, align );
/* Search through blocks for the first one with enough space */
diff --git a/src/core/osloader.c b/src/core/osloader.c
index ddbe68a3..09d671a0 100644
--- a/src/core/osloader.c
+++ b/src/core/osloader.c
@@ -29,6 +29,7 @@ Modifications: Ken Yap (for Etherboot/16)
* your option) any later version.
*/
+#include "stdio.h"
#include "io.h"
#include "memsizes.h"