Browse Source

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

tags/v0.9.3
Marty Connor 18 years ago
parent
commit
1da4faa896
6 changed files with 11 additions and 4 deletions
  1. 1
    0
      src/core/buffer.c
  2. 1
    1
      src/core/dev.c
  3. 1
    0
      src/core/device.c
  4. 5
    3
      src/core/main.c
  5. 2
    0
      src/core/malloc.c
  6. 1
    0
      src/core/osloader.c

+ 1
- 0
src/core/buffer.c View File

38
  *
38
  *
39
  */
39
  */
40
 
40
 
41
+#include "stdio.h"
41
 #include "stddef.h"
42
 #include "stddef.h"
42
 #include "string.h"
43
 #include "string.h"
43
 #include "io.h"
44
 #include "io.h"

+ 1
- 1
src/core/dev.c View File

132
 		return 1;
132
 		return 1;
133
 	} while ( bus_driver->next_location ( bus_loc ) );
133
 	} while ( bus_driver->next_location ( bus_loc ) );
134
 
134
 
135
-	DBG ( "DEV found no device for driver %s\n" );
135
+	DBG ( "DEV found no device for driver %s\n", device_driver->name );
136
 	return 0;
136
 	return 0;
137
 }
137
 }
138
 
138
 

+ 1
- 0
src/core/device.c View File

19
 #include <gpxe/list.h>
19
 #include <gpxe/list.h>
20
 #include <gpxe/tables.h>
20
 #include <gpxe/tables.h>
21
 #include <gpxe/device.h>
21
 #include <gpxe/device.h>
22
+#include "stdio.h"
22
 
23
 
23
 /**
24
 /**
24
  * @file
25
  * @file

+ 5
- 3
src/core/main.c View File

134
 
134
 
135
 #endif
135
 #endif
136
 
136
 
137
-
138
-
137
+#if 0
139
 static int main_loop(int state);
138
 static int main_loop(int state);
140
 static int exit_ok;
139
 static int exit_ok;
141
-static int exit_status;
142
 static int initialized;
140
 static int initialized;
141
+#endif
142
+
143
+static int exit_status;
143
 
144
 
145
+void test_dhcp ( struct net_device *netdev );
144
 
146
 
145
 /**************************************************************************
147
 /**************************************************************************
146
 MAIN - Kick off routine
148
 MAIN - Kick off routine

+ 2
- 0
src/core/malloc.c View File

16
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
  */
17
  */
18
 
18
 
19
+#include <stdio.h>
19
 #include <stddef.h>
20
 #include <stddef.h>
20
 #include <stdint.h>
21
 #include <stdint.h>
21
 #include <string.h>
22
 #include <string.h>
77
 	 */
78
 	 */
78
 	size = ( size + MIN_MEMBLOCK_SIZE - 1 ) & ~( MIN_MEMBLOCK_SIZE - 1 );
79
 	size = ( size + MIN_MEMBLOCK_SIZE - 1 ) & ~( MIN_MEMBLOCK_SIZE - 1 );
79
 	align_mask = ( align - 1 ) | ( MIN_MEMBLOCK_SIZE - 1 );
80
 	align_mask = ( align - 1 ) | ( MIN_MEMBLOCK_SIZE - 1 );
81
+
80
 	DBG ( "Allocating %#zx (aligned %#zx)\n", size, align );
82
 	DBG ( "Allocating %#zx (aligned %#zx)\n", size, align );
81
 
83
 
82
 	/* Search through blocks for the first one with enough space */
84
 	/* Search through blocks for the first one with enough space */

+ 1
- 0
src/core/osloader.c View File

29
  * your option) any later version.
29
  * your option) any later version.
30
  */
30
  */
31
 
31
 
32
+#include "stdio.h"
32
 #include "io.h"
33
 #include "io.h"
33
 #include "memsizes.h"
34
 #include "memsizes.h"
34
 
35
 

Loading…
Cancel
Save