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:
parent
757618edea
commit
1da4faa896
@ -38,6 +38,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "stdio.h"
|
||||
#include "stddef.h"
|
||||
#include "string.h"
|
||||
#include "io.h"
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include <gpxe/list.h>
|
||||
#include <gpxe/tables.h>
|
||||
#include <gpxe/device.h>
|
||||
#include "stdio.h"
|
||||
|
||||
/**
|
||||
* @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
|
||||
|
@ -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 */
|
||||
|
@ -29,6 +29,7 @@ Modifications: Ken Yap (for Etherboot/16)
|
||||
* your option) any later version.
|
||||
*/
|
||||
|
||||
#include "stdio.h"
|
||||
#include "io.h"
|
||||
#include "memsizes.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user