2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-01-18 21:43:14 +00:00

include stdio.h to suppress printf warning, general warnings fixups

This commit is contained in:
Marty Connor 2006-09-27 04:04:55 +00:00
parent 757618edea
commit 1da4faa896
6 changed files with 11 additions and 4 deletions

View File

@ -38,6 +38,7 @@
*
*/
#include "stdio.h"
#include "stddef.h"
#include "string.h"
#include "io.h"

View File

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

View File

@ -19,6 +19,7 @@
#include <gpxe/list.h>
#include <gpxe/tables.h>
#include <gpxe/device.h>
#include "stdio.h"
/**
* @file

View File

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

View File

@ -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 */

View File

@ -29,6 +29,7 @@ Modifications: Ken Yap (for Etherboot/16)
* your option) any later version.
*/
#include "stdio.h"
#include "io.h"
#include "memsizes.h"