mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 13:00:39 +03:00
include stdio.h to suppress printf warning, general warnings fixups
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "stdio.h"
|
||||||
#include "stddef.h"
|
#include "stddef.h"
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "io.h"
|
#include "io.h"
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ int find_by_driver ( struct bus_loc *bus_loc, struct bus_dev *bus_dev,
|
|||||||
return 1;
|
return 1;
|
||||||
} while ( bus_driver->next_location ( bus_loc ) );
|
} 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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#include <gpxe/list.h>
|
#include <gpxe/list.h>
|
||||||
#include <gpxe/tables.h>
|
#include <gpxe/tables.h>
|
||||||
#include <gpxe/device.h>
|
#include <gpxe/device.h>
|
||||||
|
#include "stdio.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
|
|||||||
@@ -134,13 +134,15 @@ operations[] = {
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
|
||||||
static int main_loop(int state);
|
static int main_loop(int state);
|
||||||
static int exit_ok;
|
static int exit_ok;
|
||||||
static int exit_status;
|
|
||||||
static int initialized;
|
static int initialized;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static int exit_status;
|
||||||
|
|
||||||
|
void test_dhcp ( struct net_device *netdev );
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
MAIN - Kick off routine
|
MAIN - Kick off routine
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.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 );
|
size = ( size + MIN_MEMBLOCK_SIZE - 1 ) & ~( MIN_MEMBLOCK_SIZE - 1 );
|
||||||
align_mask = ( align - 1 ) | ( MIN_MEMBLOCK_SIZE - 1 );
|
align_mask = ( align - 1 ) | ( MIN_MEMBLOCK_SIZE - 1 );
|
||||||
|
|
||||||
DBG ( "Allocating %#zx (aligned %#zx)\n", size, align );
|
DBG ( "Allocating %#zx (aligned %#zx)\n", size, align );
|
||||||
|
|
||||||
/* Search through blocks for the first one with enough space */
|
/* 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.
|
* your option) any later version.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "stdio.h"
|
||||||
#include "io.h"
|
#include "io.h"
|
||||||
#include "memsizes.h"
|
#include "memsizes.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user