* 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)
diff --git a/net/net.c b/net/net.c
index 907cd73..eaab562 100644
--- a/net/net.c
+++ b/net/net.c
@@ -422,7 +422,7 @@
*/
if (ctrlc()) {
eth_halt();
- printf("\nAbort\n");
+ puts ("\nAbort\n");
return (-1);
}
@@ -733,7 +733,7 @@
* the server ethernet address
*/
#ifdef ET_DEBUG
- printf("Got ARP\n");
+ puts ("Got ARP\n");
#endif
arp = (ARP_t *)ip;
if (len < ARP_HDR_SIZE) {
@@ -764,7 +764,7 @@
switch (ntohs(arp->ar_op)) {
case ARPOP_REQUEST: /* reply with our IP address */
#ifdef ET_DEBUG
- printf("Got ARP REQUEST, return our IP\n");
+ puts ("Got ARP REQUEST, return our IP\n");
#endif
NetSetEther((uchar *)et, et->et_src, PROT_ARP);
arp->ar_op = htons(ARPOP_REPLY);
@@ -791,7 +791,7 @@
/* matched waiting packet's address */
if (tmp == NetArpWaitReplyIP) {
#ifdef ET_DEBUG
- printf("Got it\n");
+ puts ("Got it\n");
#endif
/* save address for later use */
memcpy(NetArpWaitPacketMAC, &arp->ar_data[0], 6);
@@ -816,7 +816,7 @@
case PROT_RARP:
#ifdef ET_DEBUG
- printf("Got RARP\n");
+ puts ("Got RARP\n");
#endif
arp = (ARP_t *)ip;
if (len < ARP_HDR_SIZE) {
@@ -829,7 +829,7 @@
(ntohs(arp->ar_pro) != PROT_IP) ||
(arp->ar_hln != 6) || (arp->ar_pln != 4)) {
- printf("invalid RARP header\n");
+ puts ("invalid RARP header\n");
} else {
NetCopyIP(&NetOurIP, &arp->ar_data[16]);
if (NetServerIP == 0)
@@ -842,7 +842,7 @@
case PROT_IP:
#ifdef ET_DEBUG
- printf("Got IP\n");
+ puts ("Got IP\n");
#endif
if (len < IP_HDR_SIZE) {
debug ("len bad %d < %d\n", len, IP_HDR_SIZE);
@@ -863,7 +863,7 @@
return;
}
if (!NetCksumOk((uchar *)ip, IP_HDR_SIZE_NO_UDP / 2)) {
- printf("checksum bad\n");
+ puts ("checksum bad\n");
return;
}
tmp = NetReadIP(&ip->ip_dst);