Browse Source

We don't actually have a stdio.h header file. Our printf() functions are

defined in vsprintf.h.  (This may change, since vsprintf.h is a
non-standard name, but for now it's the one to use.)

There should be no need to include vsprintf.h just for DBG() statements,
since include/compiler.h forces it in for a debug build anyway.
tags/v0.9.3
Michael Brown 18 years ago
parent
commit
88e38fa148

+ 0
- 1
src/arch/i386/core/load_buffer.c View File

1
-#include <stdio.h>
2
 #include "io.h"
1
 #include "io.h"
3
 #include "load_buffer.h"
2
 #include "load_buffer.h"
4
 
3
 

+ 0
- 1
src/arch/i386/core/relocate.c View File

1
-#include <stdio.h>
2
 #include <io.h>
1
 #include <io.h>
3
 #include <registers.h>
2
 #include <registers.h>
4
 #include <memmap.h>
3
 #include <memmap.h>

+ 0
- 1
src/arch/i386/firmware/pcbios/hidemem.c View File

15
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
  */
16
  */
17
 
17
 
18
-#include <stdio.h>
19
 #include <realmode.h>
18
 #include <realmode.h>
20
 #include <biosint.h>
19
 #include <biosint.h>
21
 
20
 

+ 0
- 1
src/arch/i386/firmware/pcbios/memmap.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>
20
 #include <stdint.h>
19
 #include <stdint.h>
21
 #include <errno.h>
20
 #include <errno.h>
22
 #include <realmode.h>
21
 #include <realmode.h>

+ 0
- 1
src/arch/i386/interface/pcbios/int13.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>
20
 #include <stdint.h>
19
 #include <stdint.h>
21
 #include <limits.h>
20
 #include <limits.h>
22
 #include <byteswap.h>
21
 #include <byteswap.h>

+ 0
- 1
src/arch/i386/interface/pxe/pxe_call.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>
20
 #include <gpxe/uaccess.h>
19
 #include <gpxe/uaccess.h>
21
 #include <registers.h>
20
 #include <registers.h>
22
 #include <biosint.h>
21
 #include <biosint.h>

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

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

+ 0
- 1
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"
23
 
22
 
24
 /**
23
 /**
25
  * @file
24
  * @file

+ 0
- 1
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>
20
 #include <stddef.h>
19
 #include <stddef.h>
21
 #include <stdint.h>
20
 #include <stdint.h>
22
 #include <string.h>
21
 #include <string.h>

+ 0
- 1
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"
33
 #include "io.h"
32
 #include "io.h"
34
 #include "memsizes.h"
33
 #include "memsizes.h"
35
 
34
 

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

1
 #include "resolv.h"
1
 #include "resolv.h"
2
-#include "stdio.h"
3
 
2
 
4
 static struct resolver resolvers[0] __table_start(resolver);
3
 static struct resolver resolvers[0] __table_start(resolver);
5
 static struct resolver resolvers_end[0] __table_end(resolver);
4
 static struct resolver resolvers_end[0] __table_end(resolver);

+ 0
- 1
src/crypto/framework.c View File

1
 /* mcb - this file breaks the build process; temporarily deactivating */
1
 /* mcb - this file breaks the build process; temporarily deactivating */
2
 #if 0
2
 #if 0
3
 
3
 
4
-#include <stdio.h>
5
 #include <stdlib.h>
4
 #include <stdlib.h>
6
 #include <sys/types.h>
5
 #include <sys/types.h>
7
 #include <sys/socket.h>
6
 #include <sys/socket.h>

+ 0
- 1
src/crypto/ssl.c View File

1
-#include <stdio.h>
2
 #include "ssl.h"
1
 #include "ssl.h"
3
 #include "ssl_constructs.h"
2
 #include "ssl_constructs.h"
4
 #include <string.h> // for bcopy()
3
 #include <string.h> // for bcopy()

+ 0
- 1
src/drivers/bitbash/i2c_bit.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>
20
 #include <stddef.h>
19
 #include <stddef.h>
21
 #include <stdint.h>
20
 #include <stdint.h>
22
 #include <errno.h>
21
 #include <errno.h>

+ 0
- 1
src/drivers/bitbash/spi_bit.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>
20
 #include <stddef.h>
19
 #include <stddef.h>
21
 #include <stdint.h>
20
 #include <stdint.h>
22
 #include <string.h>
21
 #include <string.h>

+ 0
- 1
src/drivers/block/ata.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>
20
 #include <stddef.h>
19
 #include <stddef.h>
21
 #include <string.h>
20
 #include <string.h>
22
 #include <assert.h>
21
 #include <assert.h>

+ 0
- 1
src/drivers/bus/pci.c View File

19
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
  */
20
  */
21
 
21
 
22
-#include <stdio.h>
23
 #include <stdint.h>
22
 #include <stdint.h>
24
 #include <string.h>
23
 #include <string.h>
25
 #include <errno.h>
24
 #include <errno.h>

+ 0
- 1
src/drivers/bus/pciextra.c View File

1
-#include <stdio.h>
2
 #include <stdint.h>
1
 #include <stdint.h>
3
 #include <gpxe/pci.h>
2
 #include <gpxe/pci.h>
4
 
3
 

+ 0
- 1
src/interface/pxe/pxe_loader.c View File

22
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23
  */
23
  */
24
 
24
 
25
-#include <stdio.h>
26
 #include "pxe.h"
25
 #include "pxe.h"
27
 
26
 
28
 /* PXENV_UNDI_LOADER
27
 /* PXENV_UNDI_LOADER

+ 0
- 1
src/interface/pxe/pxe_tftp.c View File

22
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23
  */
23
  */
24
 
24
 
25
-#include <stdio.h>
26
 #include "pxe.h"
25
 #include "pxe.h"
27
 
26
 
28
 static int pxe_tftp_read_block ( unsigned char *data, unsigned int block,
27
 static int pxe_tftp_read_block ( unsigned char *data, unsigned int block,

+ 0
- 1
src/interface/pxe/pxe_udp.c View File

4
  *
4
  *
5
  */
5
  */
6
 
6
 
7
-#include <stdio.h>
8
 #include <string.h>
7
 #include <string.h>
9
 #include <byteswap.h>
8
 #include <byteswap.h>
10
 #include <gpxe/udp.h>
9
 #include <gpxe/udp.h>

+ 0
- 1
src/interface/pxe/pxe_undi.c View File

22
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23
  */
23
  */
24
 
24
 
25
-#include <stdio.h>
26
 #include "pxe.h"
25
 #include "pxe.h"
27
 
26
 
28
 /* PXENV_UNDI_STARTUP
27
 /* PXENV_UNDI_STARTUP

+ 0
- 1
src/net/arp.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"
20
 #include <stdint.h>
19
 #include <stdint.h>
21
 #include <string.h>
20
 #include <string.h>
22
 #include <byteswap.h>
21
 #include <byteswap.h>

+ 0
- 1
src/net/icmpv6.c View File

1
-#include <stdio.h>
2
 #include <stdint.h>
1
 #include <stdint.h>
3
 #include <string.h>
2
 #include <string.h>
4
 #include <byteswap.h>
3
 #include <byteswap.h>

+ 0
- 1
src/net/ndp.c View File

1
-#include "stdio.h"
2
 #include <stdint.h>
1
 #include <stdint.h>
3
 #include <string.h>
2
 #include <string.h>
4
 #include <byteswap.h>
3
 #include <byteswap.h>

+ 0
- 1
src/net/netdevice.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>
20
 #include <stdint.h>
19
 #include <stdint.h>
21
 #include <byteswap.h>
20
 #include <byteswap.h>
22
 #include <string.h>
21
 #include <string.h>

+ 0
- 1
src/net/retry.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>
20
 #include <stddef.h>
19
 #include <stddef.h>
21
 #include <latch.h>
20
 #include <latch.h>
22
 #include <gpxe/list.h>
21
 #include <gpxe/list.h>

+ 0
- 1
src/net/tcpip.c View File

1
-#include <stdio.h>
2
 #include <stdint.h>
1
 #include <stdint.h>
3
 #include <string.h>
2
 #include <string.h>
4
 #include <errno.h>
3
 #include <errno.h>

+ 0
- 1
src/net/udp.c View File

1
-#include <stdio.h>
2
 #include <stdint.h>
1
 #include <stdint.h>
3
 #include <string.h>
2
 #include <string.h>
4
 #include <assert.h>
3
 #include <assert.h>

+ 0
- 1
src/net/udp/dhcp.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>
20
 #include <string.h>
19
 #include <string.h>
21
 #include <errno.h>
20
 #include <errno.h>
22
 #include <assert.h>
21
 #include <assert.h>

+ 0
- 1
src/net/uip/uip.c View File

168
 #endif /* UIP_STATISTICS == 1 */
168
 #endif /* UIP_STATISTICS == 1 */
169
 
169
 
170
 #if UIP_LOGGING == 1
170
 #if UIP_LOGGING == 1
171
-#include <stdio.h>
172
 void uip_log(char *msg);
171
 void uip_log(char *msg);
173
 #define UIP_LOG(m) uip_log(m)
172
 #define UIP_LOG(m) uip_log(m)
174
 #else
173
 #else

+ 0
- 1
src/proto/nmb.c View File

1
-#include "stdio.h"
2
 #include "resolv.h"
1
 #include "resolv.h"
3
 #include "string.h"
2
 #include "string.h"
4
 #include "dns.h"
3
 #include "dns.h"

Loading…
Cancel
Save