Procházet zdrojové kódy

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

tags/v0.9.3
Marty Connor před 18 roky
rodič
revize
1da4faa896
6 změnil soubory, kde provedl 11 přidání a 4 odebrání
  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 Zobrazit soubor

@@ -38,6 +38,7 @@
38 38
  *
39 39
  */
40 40
 
41
+#include "stdio.h"
41 42
 #include "stddef.h"
42 43
 #include "string.h"
43 44
 #include "io.h"

+ 1
- 1
src/core/dev.c Zobrazit soubor

@@ -132,7 +132,7 @@ int find_by_driver ( struct bus_loc *bus_loc, struct bus_dev *bus_dev,
132 132
 		return 1;
133 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 136
 	return 0;
137 137
 }
138 138
 

+ 1
- 0
src/core/device.c Zobrazit soubor

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

+ 5
- 3
src/core/main.c Zobrazit soubor

@@ -134,13 +134,15 @@ operations[] = {
134 134
 
135 135
 #endif
136 136
 
137
-
138
-
137
+#if 0
139 138
 static int main_loop(int state);
140 139
 static int exit_ok;
141
-static int exit_status;
142 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 148
 MAIN - Kick off routine

+ 2
- 0
src/core/malloc.c Zobrazit soubor

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

+ 1
- 0
src/core/osloader.c Zobrazit soubor

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

Načítá se…
Zrušit
Uložit