Skip to content

Commit

Permalink
Use stdio.h instead of vsprintf.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brown committed Jan 19, 2007
1 parent 06475f7 commit 73b09ec
Show file tree
Hide file tree
Showing 45 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion src/arch/i386/core/nulltrap.c
@@ -1,5 +1,5 @@
#include <stdint.h>
#include <vsprintf.h>
#include <stdio.h>

__attribute__ (( noreturn, section ( ".text.null_trap" ) ))
void null_function_trap ( void ) {
Expand Down
2 changes: 1 addition & 1 deletion src/arch/i386/drivers/net/undi.c
Expand Up @@ -18,8 +18,8 @@

#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vsprintf.h>
#include <gpxe/pci.h>
#include <undi.h>
#include <undirom.h>
Expand Down
2 changes: 1 addition & 1 deletion src/core/exec.c
Expand Up @@ -19,11 +19,11 @@
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <getopt.h>
#include <errno.h>
#include <assert.h>
#include <vsprintf.h>
#include <gpxe/tables.h>
#include <gpxe/command.h>

Expand Down
2 changes: 1 addition & 1 deletion src/core/getopt.c
Expand Up @@ -18,7 +18,7 @@

#include <stdint.h>
#include <string.h>
#include <vsprintf.h>
#include <stdio.h>
#include <getopt.h>

/** @file
Expand Down
2 changes: 1 addition & 1 deletion src/core/image.c
Expand Up @@ -19,9 +19,9 @@
#include <stddef.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <assert.h>
#include <vsprintf.h>
#include <gpxe/list.h>
#include <gpxe/image.h>

Expand Down
2 changes: 1 addition & 1 deletion src/core/malloc.c
Expand Up @@ -340,7 +340,7 @@ void mpopulate ( void *start, size_t len ) {
}

#if 0
#include <vsprintf.h>
#include <stdio.h>
/**
* Dump free block list
*
Expand Down
2 changes: 1 addition & 1 deletion src/core/settings.c
Expand Up @@ -18,12 +18,12 @@

#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <byteswap.h>
#include <errno.h>
#include <assert.h>
#include <vsprintf.h>
#include <gpxe/in.h>
#include <gpxe/settings.h>

Expand Down
1 change: 1 addition & 0 deletions src/core/vsprintf.c
Expand Up @@ -18,6 +18,7 @@

#include <stddef.h>
#include <stdarg.h>
#include <stdio.h>
#include <console.h>
#include <errno.h>
#include <vsprintf.h>
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/bus/pci.c
Expand Up @@ -21,9 +21,9 @@

#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <vsprintf.h>
#include <gpxe/tables.h>
#include <gpxe/device.h>
#include <gpxe/pci.h>
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/net/legacy.c
@@ -1,6 +1,6 @@
#include <stdint.h>
#include <stdio.h>
#include <errno.h>
#include <vsprintf.h>
#include <gpxe/if_ether.h>
#include <gpxe/netdevice.h>
#include <gpxe/ethernet.h>
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/net/pnic.c
Expand Up @@ -13,8 +13,8 @@ Bochs Pseudo NIC driver for Etherboot
*/

#include <stdint.h>
#include <stdio.h>
#include <io.h>
#include <vsprintf.h>
#include <errno.h>
#include <gpxe/pci.h>
#include <gpxe/if_ether.h>
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/net/rtl8139.c
Expand Up @@ -68,9 +68,9 @@

#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <io.h>
#include <errno.h>
#include <vsprintf.h>
#include <timer.h>
#include <byteswap.h>
#include <gpxe/pci.h>
Expand Down
2 changes: 1 addition & 1 deletion src/hci/commands/autoboot_cmd.c
@@ -1,4 +1,4 @@
#include <vsprintf.h>
#include <stdio.h>
#include <gpxe/command.h>
#include <usr/autoboot.h>

Expand Down
2 changes: 1 addition & 1 deletion src/hci/commands/config_cmd.c
@@ -1,5 +1,5 @@
#include <string.h>
#include <vsprintf.h>
#include <stdio.h>
#include <gpxe/command.h>
#include <gpxe/settings.h>
#include <gpxe/settings_ui.h>
Expand Down
2 changes: 1 addition & 1 deletion src/hci/commands/dhcp_cmd.c
Expand Up @@ -18,8 +18,8 @@

#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <getopt.h>
#include <vsprintf.h>
#include <gpxe/netdevice.h>
#include <gpxe/command.h>
#include <usr/dhcpmgmt.h>
Expand Down
2 changes: 1 addition & 1 deletion src/hci/commands/ifmgmt_cmd.c
Expand Up @@ -16,8 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#include <stdio.h>
#include <getopt.h>
#include <vsprintf.h>
#include <gpxe/netdevice.h>
#include <gpxe/command.h>
#include <usr/ifmgmt.h>
Expand Down
2 changes: 1 addition & 1 deletion src/hci/commands/image_cmd.c
Expand Up @@ -18,10 +18,10 @@

#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <libgen.h>
#include <getopt.h>
#include <vsprintf.h>
#include <gpxe/image.h>
#include <gpxe/command.h>
#include <gpxe/initrd.h>
Expand Down
2 changes: 1 addition & 1 deletion src/hci/commands/nvo_cmd.c
@@ -1,8 +1,8 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <vsprintf.h>
#include <getopt.h>
#include <gpxe/nvo.h>
#include <gpxe/dhcp.h>
Expand Down
2 changes: 1 addition & 1 deletion src/hci/commands/route_cmd.c
Expand Up @@ -16,8 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#include <stdio.h>
#include <getopt.h>
#include <vsprintf.h>
#include <gpxe/command.h>
#include <usr/route.h>

Expand Down
2 changes: 1 addition & 1 deletion src/hci/mucurses/alert.c
@@ -1,5 +1,5 @@
#include <curses.h>
#include <vsprintf.h>
#include <stdio.h>

/** @file
*
Expand Down
3 changes: 2 additions & 1 deletion src/hci/mucurses/print.c
@@ -1,6 +1,7 @@
#include <curses.h>
#include <vsprintf.h>
#include <stdio.h>
#include <stddef.h>
#include <vsprintf.h>
#include "mucurses.h"

/** @file
Expand Down
2 changes: 1 addition & 1 deletion src/hci/shell.c
Expand Up @@ -18,7 +18,7 @@

#include <stdint.h>
#include <stdlib.h>
#include <vsprintf.h>
#include <stdio.h>
#include <readline/readline.h>
#include <gpxe/command.h>
#include <gpxe/shell.h>
Expand Down
2 changes: 1 addition & 1 deletion src/hci/strerror.c
@@ -1,6 +1,6 @@
#include <errno.h>
#include <string.h>
#include <vsprintf.h>
#include <stdio.h>
#include <gpxe/errortab.h>

/** @file
Expand Down
2 changes: 0 additions & 2 deletions src/include/console.h
@@ -1,8 +1,6 @@
#ifndef CONSOLE_H
#define CONSOLE_H

#include "stdint.h"
#include "vsprintf.h"
#include <gpxe/tables.h>

/** @file
Expand Down
2 changes: 1 addition & 1 deletion src/net/aoe.c
Expand Up @@ -18,7 +18,7 @@

#include <stddef.h>
#include <string.h>
#include <vsprintf.h>
#include <stdio.h>
#include <errno.h>
#include <assert.h>
#include <byteswap.h>
Expand Down
2 changes: 1 addition & 1 deletion src/net/dhcpopts.c
Expand Up @@ -18,11 +18,11 @@

#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <byteswap.h>
#include <errno.h>
#include <string.h>
#include <assert.h>
#include <vsprintf.h>
#include <gpxe/list.h>
#include <gpxe/in.h>
#include <gpxe/dhcp.h>
Expand Down
2 changes: 1 addition & 1 deletion src/net/ethernet.c
Expand Up @@ -17,11 +17,11 @@
*/

#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <byteswap.h>
#include <errno.h>
#include <assert.h>
#include <vsprintf.h>
#include <gpxe/if_arp.h>
#include <gpxe/if_ether.h>
#include <gpxe/netdevice.h>
Expand Down
2 changes: 1 addition & 1 deletion src/net/ipv4.c
@@ -1,9 +1,9 @@
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <byteswap.h>
#include <vsprintf.h>
#include <gpxe/list.h>
#include <gpxe/in.h>
#include <gpxe/arp.h>
Expand Down
2 changes: 1 addition & 1 deletion src/net/ipv6.c
Expand Up @@ -2,7 +2,7 @@
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <vsprintf.h>
#include <stdio.h>
#include <byteswap.h>
#include <gpxe/in.h>
#include <gpxe/ip6.h>
Expand Down
2 changes: 1 addition & 1 deletion src/net/netdevice.c
Expand Up @@ -18,10 +18,10 @@

#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <byteswap.h>
#include <string.h>
#include <errno.h>
#include <vsprintf.h>
#include <gpxe/if_ether.h>
#include <gpxe/pkbuff.h>
#include <gpxe/tables.h>
Expand Down
2 changes: 1 addition & 1 deletion src/net/tcp.c
@@ -1,10 +1,10 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <errno.h>
#include <byteswap.h>
#include <timer.h>
#include <vsprintf.h>
#include <gpxe/pkbuff.h>
#include <gpxe/malloc.h>
#include <gpxe/retry.h>
Expand Down
2 changes: 1 addition & 1 deletion src/net/tcp/ftp.c
@@ -1,7 +1,7 @@
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vsprintf.h>
#include <assert.h>
#include <errno.h>
#include <gpxe/async.h>
Expand Down
2 changes: 1 addition & 1 deletion src/net/tcp/http.c
Expand Up @@ -25,12 +25,12 @@

#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <byteswap.h>
#include <errno.h>
#include <assert.h>
#include <vsprintf.h>
#include <gpxe/async.h>
#include <gpxe/uri.h>
#include <gpxe/buffer.h>
Expand Down
2 changes: 1 addition & 1 deletion src/net/tcp/iscsi.c
Expand Up @@ -19,7 +19,7 @@
#include <stddef.h>
#include <string.h>
#include <stdlib.h>
#include <vsprintf.h>
#include <stdio.h>
#include <errno.h>
#include <assert.h>
#include <byteswap.h>
Expand Down
2 changes: 1 addition & 1 deletion src/net/udp/tftp.c
Expand Up @@ -18,12 +18,12 @@

#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <byteswap.h>
#include <errno.h>
#include <assert.h>
#include <vsprintf.h>
#include <gpxe/async.h>
#include <gpxe/tftp.h>
#include <gpxe/uri.h>
Expand Down
2 changes: 1 addition & 1 deletion src/tests/aoeboot.c
@@ -1,7 +1,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <vsprintf.h>
#include <console.h>
#include <gpxe/netdevice.h>
#include <gpxe/aoe.h>
Expand Down
2 changes: 1 addition & 1 deletion src/tests/dhcptest.c
@@ -1,7 +1,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <vsprintf.h>
#include <byteswap.h>
#include <gpxe/ip.h>
#include <gpxe/dhcp.h>
Expand Down
2 changes: 1 addition & 1 deletion src/tests/iscsiboot.c
@@ -1,7 +1,7 @@
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <byteswap.h>
#include <vsprintf.h>
#include <gpxe/netdevice.h>
#include <gpxe/iscsi.h>
#include <gpxe/ibft.h>
Expand Down
2 changes: 1 addition & 1 deletion src/tests/linebuf_test.c
@@ -1,6 +1,6 @@
#include <stdint.h>
#include <string.h>
#include <vsprintf.h>
#include <stdio.h>
#include <gpxe/linebuf.h>

static const char data1[] =
Expand Down
2 changes: 1 addition & 1 deletion src/tests/umalloc_test.c
@@ -1,4 +1,4 @@
#include <vsprintf.h>
#include <stdio.h>
#include <gpxe/uaccess.h>
#include <gpxe/umalloc.h>
#include <gpxe/memmap.h>
Expand Down

0 comments on commit 73b09ec

Please sign in to comment.