From 4b9206ed51a3e3dc06dca2a3930a24e4f0025f3d Mon Sep 17 00:00:00 2001 From: wdenk Date: Tue, 23 Mar 2004 22:14:11 +0000 Subject: * Patches by Thomas Viehweger, 16 Mar 2004: - show PCI clock frequency on MPC8260 systems - add FCC_PSMR_RMII flag for HiP7 processors - in do_jffs2_fsload(), take load address from load_addr if not set explicit, update load_addr otherwise - replaced printf by putc/puts when no formatting is needed (smaller code size, faster execution) --- net/bootp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'net/bootp.c') diff --git a/net/bootp.c b/net/bootp.c index 9eae34fd400..21ce7b22844 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -268,7 +268,7 @@ static void BootpVendorProcess (u8 * ext, int size) } #ifdef DEBUG_BOOTP_EXT - printf ("[BOOTP] Received fields: \n"); + puts ("[BOOTP] Received fields: \n"); if (NetOurSubnetMask) { puts ("NetOurSubnetMask : "); print_IPaddr (NetOurSubnetMask); @@ -585,7 +585,7 @@ BootpRequest (void) } } #ifdef DEBUG - printf("BootpRequest => Our Mac: "); + puts ("BootpRequest => Our Mac: "); for (reg=0; reg<6; reg++) { printf ("%x%c", bi_enetaddr[reg], @@ -887,9 +887,9 @@ DhcpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len) DhcpOptionsProcess(&bp->bp_vend[4]); BootpCopyNetParams(bp); /* Store net params from reply */ dhcp_state = BOUND; - printf("DHCP client bound to address "); + puts ("DHCP client bound to address "); print_IPaddr(NetOurIP); - printf("\n"); + putc ('\n'); /* Obey the 'autoload' setting */ if ((s = getenv("autoload")) != NULL) { @@ -915,7 +915,7 @@ DhcpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len) } break; default: - printf("DHCP: INVALID STATE\n"); + puts ("DHCP: INVALID STATE\n"); break; } -- cgit v1.2.3