svn commit: trunk/busybox: coreutils e2fsprogs e2fsprogs/blkid e2fs etc...

vda at busybox.net vda at busybox.net
Thu Oct 26 00:37:02 UTC 2006


Author: vda
Date: 2006-10-25 17:37:00 -0700 (Wed, 25 Oct 2006)
New Revision: 16438

Log:
silly size savings and capitalization fixes


Modified:
   trunk/busybox/coreutils/ls.c
   trunk/busybox/coreutils/sum.c
   trunk/busybox/e2fsprogs/blkid/dev.c
   trunk/busybox/e2fsprogs/blkid/read.c
   trunk/busybox/e2fsprogs/fsck.c
   trunk/busybox/e2fsprogs/lsattr.c
   trunk/busybox/e2fsprogs/uuid/uuid_time.c
   trunk/busybox/miscutils/hdparm.c
   trunk/busybox/modutils/lsmod.c
   trunk/busybox/networking/ether-wake.c
   trunk/busybox/networking/interface.c
   trunk/busybox/networking/libiproute/ipaddress.c
   trunk/busybox/networking/libiproute/iproute.c
   trunk/busybox/networking/libiproute/iptunnel.c
   trunk/busybox/networking/nslookup.c
   trunk/busybox/networking/ping.c
   trunk/busybox/networking/ping6.c
   trunk/busybox/procps/fuser.c
   trunk/busybox/shell/lash.c
   trunk/busybox/shell/msh.c
   trunk/busybox/util-linux/fdisk.c
   trunk/busybox/util-linux/fdisk_osf.c
   trunk/busybox/util-linux/fsck_minix.c
   trunk/busybox/util-linux/getopt.c


Changeset:
Modified: trunk/busybox/coreutils/ls.c
===================================================================
--- trunk/busybox/coreutils/ls.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/coreutils/ls.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -485,7 +485,7 @@
 	for (i = 0; i < ndirs; i++) {
 		if (all_fmt & (DISP_DIRNAME | DISP_RECURSIVE)) {
 			if (!first)
-				printf("\n");
+				puts("");
 			first = 0;
 			printf("%s:\n", dn[i]->fullname);
 		}

Modified: trunk/busybox/coreutils/sum.c
===================================================================
--- trunk/busybox/coreutils/sum.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/coreutils/sum.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -65,7 +65,7 @@
 	if (print_name > 1)
 		puts(file);
 	else
-		printf("\n");
+		puts("");
 out:
 	return ret;
 }

Modified: trunk/busybox/e2fsprogs/blkid/dev.c
===================================================================
--- trunk/busybox/e2fsprogs/blkid/dev.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/e2fsprogs/blkid/dev.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -82,7 +82,7 @@
 		else
 			printf("    tag: NULL\n");
 	}
-	printf("\n");
+	puts("");
 }
 #endif
 

Modified: trunk/busybox/e2fsprogs/blkid/read.c
===================================================================
--- trunk/busybox/e2fsprogs/blkid/read.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/e2fsprogs/blkid/read.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -437,7 +437,7 @@
 		else
 			printf("    tag: NULL\n");
 	}
-	printf("\n");
+	puts("");
 }
 
 int main(int argc, char**argv)

Modified: trunk/busybox/e2fsprogs/fsck.c
===================================================================
--- trunk/busybox/e2fsprogs/fsck.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/e2fsprogs/fsck.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -614,7 +614,7 @@
 		       mntpt ? mntpt : device);
 		for (i=0; i < argc; i++)
 			printf("%s ", argv[i]);
-		printf("\n");
+		puts("");
 	}
 
 	/* Fork and execute the correct program. */

Modified: trunk/busybox/e2fsprogs/lsattr.c
===================================================================
--- trunk/busybox/e2fsprogs/lsattr.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/e2fsprogs/lsattr.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -57,7 +57,7 @@
 	if (flags & OPT_PF_LONG) {
 		printf("%-28s ", name);
 		print_flags(stdout, fsflags, PFOPT_LONG);
-		printf("\n");
+		puts("");
 	} else {
 		print_flags(stdout, fsflags, 0);
 		printf(" %s\n", name);
@@ -102,7 +102,7 @@
 			   (de->d_name[1] != '.' && de->d_name[2] != '\0')))) {
 				printf("\n%s:\n", path);
 				iterate_on_dir(path, lsattr_dir_proc, NULL);
-				printf("\n");
+				puts("");
 			}
 		}
 	}

Modified: trunk/busybox/e2fsprogs/uuid/uuid_time.c
===================================================================
--- trunk/busybox/e2fsprogs/uuid/uuid_time.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/e2fsprogs/uuid/uuid_time.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -147,7 +147,7 @@
 		printf(" (random)\n");
 		break;
 	default:
-		printf("\n");
+		puts("");
 	}
 	if (type != 1) {
 		printf("Warning: not a time-based UUID, so UUID time "

Modified: trunk/busybox/miscutils/hdparm.c
===================================================================
--- trunk/busybox/miscutils/hdparm.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/miscutils/hdparm.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -547,7 +547,7 @@
 		printf("%c%c",(char)0x00ff&((*p)>>8),(char)(*p)&0x00ff);
 		p++;
 	}
-	printf("\n");
+	puts("");
 }
 
 // Parse 512 byte disk identification block and print much crap.
@@ -574,7 +574,7 @@
 	chksum &= 0xff;
 
 	/* check if we recognise the device type */
-	printf("\n");
+	puts("");
 	if (!(val[GEN_CONFIG] & NOT_ATA))
 	{
 		dev = ATA_DEV;
@@ -706,7 +706,7 @@
 		else if (like_std > std)
 			printf("& some of %u\n",like_std);
 		else
-			printf("\n");
+			puts("");
 	}
 	else
 	{
@@ -818,7 +818,7 @@
 		if (bbbig > 1000)
 			printf("(%"PRIu64" GB)\n", bbbig/1000);
 		else
-			printf("\n");
+			puts("");
 	}
 
 	/* hw support of commands (capabilities) */
@@ -870,7 +870,7 @@
 			if ((like_std > 3) && ((val[CAPAB_1] & VALID) == VALID_VAL))
 				printf(", %s device specific minimum\n",(val[CAPAB_1] & MIN_STANDBY_TIMER)?"with":"no");
 			else
-			  printf("\n");
+			  puts("");
 		}
 		printf("\tR/W multiple sector transfer: ");
 		if ((like_std < 3) && !(val[SECTOR_XFER_MAX] & SECTOR_XFER))
@@ -913,7 +913,7 @@
 			printf("\tOverlap support:");
 			if (val[PKT_REL]) printf(" %uus to release bus.",val[PKT_REL]);
 			if (val[SVC_NBSY]) printf(" %uus to clear BSY after SERVICE cmd.",val[SVC_NBSY]);
-			printf("\n");
+			puts("");
 		}
 	}
 
@@ -944,7 +944,7 @@
 			err_dma += mode_loop(jj,kk,'u',&have_mode);
 		}
 		if (err_dma || !have_mode) printf("(?)");
-		printf("\n");
+		puts("");
 
 		if ((dev == ATAPI_DEV) && (eqpt != CDROM) && (val[CAPAB_0] & DMA_IL_SUP))
 			printf("\t\tInterleaved DMA support\n");
@@ -955,7 +955,7 @@
 			printf("\t\tCycle time:");
 			if (val[DMA_TIME_MIN]) printf(" min=%uns",val[DMA_TIME_MIN]);
 			if (val[DMA_TIME_NORM]) printf(" recommended=%uns",val[DMA_TIME_NORM]);
-			printf("\n");
+			puts("");
 		}
 	}
 
@@ -971,13 +971,13 @@
 			if (jj & 0x0001) printf("pio%d ",ii);
 			jj >>=1;
 		}
-		printf("\n");
+		puts("");
 	}
 	else if (((min_std < 5) || (eqpt == CDROM)) && (val[PIO_MODE] & MODE) )
 	{
 		for (ii = 0; ii <= val[PIO_MODE]>>8; ii++)
 			printf("pio%d ",ii);
-		printf("\n");
+		puts("");
 	}
 	else
 		printf("unknown\n");
@@ -989,7 +989,7 @@
 			printf("\t\tCycle time:");
 			if (val[PIO_NO_FLOW]) printf(" no flow control=%uns", val[PIO_NO_FLOW]);
 			if (val[PIO_FLOW]) printf("  IORDY flow control=%uns", val[PIO_FLOW]);
-			printf("\n");
+			puts("");
 		}
 	}
 
@@ -1049,7 +1049,7 @@
 			printf("\t");
 			if (jj) printf("%umin for %sSECURITY ERASE UNIT. ", jj==ERASE_BITS ? 508 : jj<<1, "");
 			if (kk) printf("%umin for %sSECURITY ERASE UNIT. ", kk==ERASE_BITS ? 508 : kk<<1, "ENHANCED ");
-			printf("\n");
+			puts("");
 		}
 	}
 
@@ -1194,7 +1194,7 @@
 		else
 			printf("off");
 	}
-	printf("\n");
+	puts("");
 
 	if (!(id->field_valid&1))
 		printf(" (maybe):");

Modified: trunk/busybox/modutils/lsmod.c
===================================================================
--- trunk/busybox/modutils/lsmod.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/modutils/lsmod.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -15,7 +15,7 @@
 
 
 #ifndef CONFIG_FEATURE_CHECK_TAINTED_MODULE
-static void check_tainted(void) { printf("\n"); }
+static void check_tainted(void) { puts(""); }
 #else
 #define TAINT_FILENAME                  "/proc/sys/kernel/tainted"
 #define TAINT_PROPRIETORY_MODULE        (1<<0)
@@ -127,7 +127,7 @@
 		}
 		if (count) printf("]");
 
-		printf("\n");
+		puts("");
 	}
 
 #ifdef CONFIG_FEATURE_CLEAN_UP

Modified: trunk/busybox/networking/ether-wake.c
===================================================================
--- trunk/busybox/networking/ether-wake.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/networking/ether-wake.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -92,7 +92,7 @@
 	printf("packet dump:\n");
 	for (i = 0; i < pktsize; ++i) {
 		printf("%2.2x ", outpack[i]);
-		if (i % 20 == 19) printf("\n");
+		if (i % 20 == 19) puts("");
 	}
 	printf("\n\n");
 }

Modified: trunk/busybox/networking/interface.c
===================================================================
--- trunk/busybox/networking/interface.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/networking/interface.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -938,7 +938,7 @@
 			printf("(auto)");
 	}
 #endif
-	printf("\n");
+	puts("");
 
 	if (ptr->has_ip) {
 		printf("          %s addr:%s ", ap->name,
@@ -1007,7 +1007,7 @@
 				default:
 					printf("Unknown");
 				}
-				printf("\n");
+				puts("");
 			}
 		}
 		fclose(f);
@@ -1034,7 +1034,7 @@
 	if (ptr->outfill || ptr->keepalive)
 		printf("  Outfill:%d  Keepalive:%d", ptr->outfill, ptr->keepalive);
 #endif
-	printf("\n");
+	puts("");
 
 	/* If needed, display the interface statistics. */
 
@@ -1083,9 +1083,9 @@
 		}
 		if (ptr->map.dma)
 			printf("DMA chan:%x ", ptr->map.dma);
-		printf("\n");
+		puts("");
 	}
-	printf("\n");
+	puts("");
 }
 
 

Modified: trunk/busybox/networking/libiproute/ipaddress.c
===================================================================
--- trunk/busybox/networking/libiproute/ipaddress.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/networking/libiproute/ipaddress.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -435,7 +435,7 @@
 			return -1;
 		}
 		if (filter.family == AF_PACKET) {
-			bb_error_msg("Cannot flush link addresses.");
+			bb_error_msg("cannot flush link addresses");
 			return -1;
 		}
 	}
@@ -488,17 +488,17 @@
 		exit(1);
 
 	if (rtnl_wilddump_request(&rth, preferred_family, RTM_GETLINK) < 0) {
-		bb_perror_msg_and_die("Cannot send dump request");
+		bb_perror_msg_and_die("cannot send dump request");
 	}
 
 	if (rtnl_dump_filter(&rth, store_nlmsg, &linfo, NULL, NULL) < 0) {
-		bb_error_msg_and_die("Dump terminated");
+		bb_error_msg_and_die("dump terminated");
 	}
 
 	if (filter_dev) {
 		filter.ifindex = ll_name_to_index(filter_dev);
 		if (filter.ifindex <= 0) {
-			bb_error_msg("Device \"%s\" does not exist", filter_dev);
+			bb_error_msg("device \"%s\" does not exist", filter_dev);
 			return -1;
 		}
 	}
@@ -532,11 +532,11 @@
 
 	if (filter.family != AF_PACKET) {
 		if (rtnl_wilddump_request(&rth, filter.family, RTM_GETADDR) < 0) {
-			bb_perror_msg_and_die("Cannot send dump request");
+			bb_perror_msg_and_die("cannot send dump request");
 		}
 
 		if (rtnl_dump_filter(&rth, store_nlmsg, &ainfo, NULL, NULL) < 0) {
-			bb_error_msg_and_die("Dump terminated");
+			bb_error_msg_and_die("dump terminated");
 		}
 	}
 
@@ -763,7 +763,7 @@
 		inet_prefix brd;
 		int i;
 		if (req.ifa.ifa_family != AF_INET) {
-			bb_error_msg("Broadcast can be set only for IPv4 addresses");
+			bb_error_msg("broadcast can be set only for IPv4 addresses");
 			return -1;
 		}
 		brd = peer;
@@ -787,7 +787,7 @@
 	ll_init_map(&rth);
 
 	if ((req.ifa.ifa_index = ll_name_to_index(d)) == 0) {
-		bb_error_msg("Cannot find device \"%s\"", d);
+		bb_error_msg("cannot find device \"%s\"", d);
 		return -1;
 	}
 

Modified: trunk/busybox/networking/libiproute/iproute.c
===================================================================
--- trunk/busybox/networking/libiproute/iproute.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/networking/libiproute/iproute.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -398,7 +398,7 @@
 
 		if (d) {
 			if ((idx = ll_name_to_index(d)) == 0) {
-				bb_error_msg("Cannot find device \"%s\"", d);
+				bb_error_msg("cannot find device \"%s\"", d);
 				return -1;
 			}
 			addattr32(&req.n, sizeof(req), RTA_OIF, idx);
@@ -571,7 +571,7 @@
 
 		if (id) {
 			if ((idx = ll_name_to_index(id)) == 0) {
-				bb_error_msg("Cannot find device \"%s\"", id);
+				bb_error_msg("cannot find device \"%s\"", id);
 				return -1;
 			}
 			filter.iif = idx;
@@ -579,7 +579,7 @@
 		}
 		if (od) {
 			if ((idx = ll_name_to_index(od)) == 0) {
-				bb_error_msg("Cannot find device \"%s\"", od);
+				bb_error_msg("cannot find device \"%s\"", od);
 			}
 			filter.oif = idx;
 			filter.oifmask = -1;
@@ -608,7 +608,7 @@
 			}
 			filter.flushed = 0;
 			if (rtnl_dump_filter(&rth, print_route, stdout, NULL, NULL) < 0) {
-				bb_error_msg("Flush terminated");
+				bb_error_msg("flush terminated");
 				return -1;
 			}
 			if (filter.flushed == 0) {
@@ -622,16 +622,16 @@
 
 	if (filter.tb != -1) {
 		if (rtnl_wilddump_request(&rth, do_ipv6, RTM_GETROUTE) < 0) {
-			bb_perror_msg_and_die("Cannot send dump request");
+			bb_perror_msg_and_die("cannot send dump request");
 		}
 	} else {
 		if (rtnl_rtcache_request(&rth, do_ipv6) < 0) {
-			bb_perror_msg_and_die("Cannot send dump request");
+			bb_perror_msg_and_die("cannot send dump request");
 		}
 	}
 
 	if (rtnl_dump_filter(&rth, print_route, stdout, NULL, NULL) < 0) {
-		bb_error_msg_and_die("Dump terminated");
+		bb_error_msg_and_die("dump terminated");
 	}
 
 	exit(0);
@@ -733,14 +733,14 @@
 
 		if (idev) {
 			if ((idx = ll_name_to_index(idev)) == 0) {
-				bb_error_msg("Cannot find device \"%s\"", idev);
+				bb_error_msg("cannot find device \"%s\"", idev);
 				return -1;
 			}
 			addattr32(&req.n, sizeof(req), RTA_IIF, idx);
 		}
 		if (odev) {
 			if ((idx = ll_name_to_index(odev)) == 0) {
-				bb_error_msg("Cannot find device \"%s\"", odev);
+				bb_error_msg("cannot find device \"%s\"", odev);
 				return -1;
 			}
 			addattr32(&req.n, sizeof(req), RTA_OIF, idx);
@@ -761,16 +761,16 @@
 		struct rtattr * tb[RTA_MAX+1];
 
 		if (print_route(NULL, &req.n, (void*)stdout) < 0) {
-			bb_error_msg_and_die("An error :-)");
+			bb_error_msg_and_die("an error :-)");
 		}
 
 		if (req.n.nlmsg_type != RTM_NEWROUTE) {
-			bb_error_msg("Not a route?");
+			bb_error_msg("not a route?");
 			return -1;
 		}
 		len -= NLMSG_LENGTH(sizeof(*r));
 		if (len < 0) {
-			bb_error_msg("Wrong len %d", len);
+			bb_error_msg("wrong len %d", len);
 			return -1;
 		}
 
@@ -781,7 +781,7 @@
 			tb[RTA_PREFSRC]->rta_type = RTA_SRC;
 			r->rtm_src_len = 8*RTA_PAYLOAD(tb[RTA_PREFSRC]);
 		} else if (!tb[RTA_SRC]) {
-			bb_error_msg("Failed to connect the route");
+			bb_error_msg("failed to connect the route");
 			return -1;
 		}
 		if (!odev && tb[RTA_OIF]) {
@@ -802,7 +802,7 @@
 	}
 
 	if (print_route(NULL, &req.n, (void*)stdout) < 0) {
-		bb_error_msg_and_die("An error :-)");
+		bb_error_msg_and_die("an error :-)");
 	}
 
 	exit(0);
@@ -849,7 +849,7 @@
 		case 12: /* flush */
 			return iproute_list_or_flush(argc-1, argv+1, 1);
 		default:
-			bb_error_msg_and_die("Unknown command %s", *argv);
+			bb_error_msg_and_die("unknown command %s", *argv);
 	}
 
 	return iproute_modify(cmd, flags, argc-1, argv+1);

Modified: trunk/busybox/networking/libiproute/iptunnel.c
===================================================================
--- trunk/busybox/networking/libiproute/iptunnel.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/networking/libiproute/iptunnel.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -164,26 +164,26 @@
 			if (strcmp(*argv, "ipip") == 0 ||
 			    strcmp(*argv, "ip/ip") == 0) {
 				if (p->iph.protocol && p->iph.protocol != IPPROTO_IPIP) {
-					bb_error_msg("You managed to ask for more than one tunnel mode.");
+					bb_error_msg("you managed to ask for more than one tunnel mode");
 					exit(-1);
 				}
 				p->iph.protocol = IPPROTO_IPIP;
 			} else if (strcmp(*argv, "gre") == 0 ||
 				   strcmp(*argv, "gre/ip") == 0) {
 				if (p->iph.protocol && p->iph.protocol != IPPROTO_GRE) {
-					bb_error_msg("You managed to ask for more than one tunnel mode.");
+					bb_error_msg("you managed to ask for more than one tunnel mode");
 					exit(-1);
 				}
 				p->iph.protocol = IPPROTO_GRE;
 			} else if (strcmp(*argv, "sit") == 0 ||
 				   strcmp(*argv, "ipv6/ip") == 0) {
 				if (p->iph.protocol && p->iph.protocol != IPPROTO_IPV6) {
-					bb_error_msg("You managed to ask for more than one tunnel mode.");
+					bb_error_msg("you managed to ask for more than one tunnel mode");
 					exit(-1);
 				}
 				p->iph.protocol = IPPROTO_IPV6;
 			} else {
-				bb_error_msg("Cannot guess tunnel mode.");
+				bb_error_msg("cannot guess tunnel mode");
 				exit(-1);
 			}
 		} else if (strcmp(*argv, "key") == 0) {
@@ -306,7 +306,7 @@
 
 	if (p->iph.protocol == IPPROTO_IPIP || p->iph.protocol == IPPROTO_IPV6) {
 		if ((p->i_flags & GRE_KEY) || (p->o_flags & GRE_KEY)) {
-			bb_error_msg("Keys are not allowed with ipip and sit.");
+			bb_error_msg("keys are not allowed with ipip and sit");
 			return -1;
 		}
 	}
@@ -326,7 +326,7 @@
 		p->o_flags |= GRE_KEY;
 	}
 	if (IN_MULTICAST(ntohl(p->iph.daddr)) && !p->iph.saddr) {
-		bb_error_msg("Broadcast tunnel requires a source address.");
+		bb_error_msg("broadcast tunnel requires a source address");
 		return -1;
 	}
 	return 0;
@@ -462,7 +462,7 @@
 		buf[sizeof(buf) - 1] = 0;
 		if ((ptr = strchr(buf, ':')) == NULL ||
 		    (*ptr++ = 0, sscanf(buf, "%s", name) != 1)) {
-			bb_error_msg("Wrong format of /proc/net/dev. Sorry.");
+			bb_error_msg("wrong format of /proc/net/dev. Sorry");
 			return -1;
 		}
 		if (sscanf(ptr, "%lu%lu%lu%lu%lu%lu%lu%*d%lu%lu%lu%lu%lu%lu%lu",
@@ -475,7 +475,7 @@
 			continue;
 		type = do_ioctl_get_iftype(name);
 		if (type == -1) {
-			bb_error_msg("Failed to get type of [%s]", name);
+			bb_error_msg("failed to get type of [%s]", name);
 			continue;
 		}
 		if (type != ARPHRD_TUNNEL && type != ARPHRD_IPGRE && type != ARPHRD_SIT)
@@ -490,7 +490,7 @@
 		    (p->i_key && p1.i_key != p->i_key))
 			continue;
 		print_tunnel(&p1);
-		printf("\n");
+		puts("");
 	}
 	return 0;
 }
@@ -521,7 +521,7 @@
 		return -1;
 
 	print_tunnel(&p);
-	printf("\n");
+	puts("");
 	return 0;
 }
 
@@ -541,6 +541,6 @@
 	} else
 		return do_show(0, NULL);
 
-	bb_error_msg("Command \"%s\" is unknown.", *argv);
+	bb_error_msg("command \"%s\" is unknown", *argv);
 	exit(-1);
 }

Modified: trunk/busybox/networking/nslookup.c
===================================================================
--- trunk/busybox/networking/nslookup.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/networking/nslookup.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -73,7 +73,7 @@
 		}
 
 	}
-	printf("\n");
+	puts("");
 	return 0;
 }
 
@@ -123,7 +123,7 @@
 	char *ip = inet_ntoa(def.sin_addr);
 
 	hostent_fprint(gethostbyaddr_wrapper(ip), "Server:");
-	printf("\n");
+	puts("");
 }
 
 /* alter the global _res nameserver structure to use

Modified: trunk/busybox/networking/ping.c
===================================================================
--- trunk/busybox/networking/ping.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/networking/ping.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -314,7 +314,7 @@
 		printf(" time=%lu.%lu ms", triptime / 10, triptime % 10);
 		if (dupflag)
 			printf(" (DUP!)");
-		printf("\n");
+		puts("");
 	} else
 		if (icmppkt->icmp_type != ICMP_ECHO)
 			bb_error_msg("warning: got ICMP %d (%s)",

Modified: trunk/busybox/networking/ping6.c
===================================================================
--- trunk/busybox/networking/ping6.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/networking/ping6.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -305,7 +305,7 @@
 			   triptime / 10, triptime % 10);
 		if (dupflag)
 			printf(" (DUP!)");
-		printf("\n");
+		puts("");
 	} else
 		if (icmppkt->icmp6_type != ICMP6_ECHO_REQUEST)
 			bb_error_msg("warning: got ICMP %d (%s)",

Modified: trunk/busybox/procps/fuser.c
===================================================================
--- trunk/busybox/procps/fuser.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/procps/fuser.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -277,7 +277,7 @@
 		if(curr->pid > 0) printf("%d ", curr->pid);
 		curr = curr->next;
 	}
-	printf("\n");
+	puts("");
 	return 1;
 }
 

Modified: trunk/busybox/shell/lash.c
===================================================================
--- trunk/busybox/shell/lash.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/shell/lash.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -678,7 +678,7 @@
 
 	if (!fgets(command, BUFSIZ - 2, source)) {
 		if (source == stdin)
-			printf("\n");
+			puts("");
 		return 1;
 	}
 

Modified: trunk/busybox/shell/msh.c
===================================================================
--- trunk/busybox/shell/msh.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/shell/msh.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -3250,7 +3250,7 @@
 			continue;
 		col += printf("%s%s", ((col == 0) ? "\t" : " "), x->name);
 		if (col > 60) {
-			printf("\n");
+			puts("");
 			col = 0;
 		}
 	}
@@ -3267,7 +3267,7 @@
 
 			col += printf("%s%s", ((col == 0) ? "\t" : " "), applet->name);
 			if (col > 60) {
-				printf("\n");
+				puts("");
 				col = 0;
 			}
 		}

Modified: trunk/busybox/util-linux/fdisk.c
===================================================================
--- trunk/busybox/util-linux/fdisk.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/util-linux/fdisk.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -2534,13 +2534,13 @@
 			printf("0x%03X:", i);
 		printf(" %02X", (unsigned char) pbuffer[i]);
 		if (l == MAX_PER_LINE - 1) {
-			printf("\n");
+			puts("");
 			l = -1;
 		}
 	}
 	if (l > 0)
-		printf("\n");
-	printf("\n");
+		puts("");
+	puts("");
 }
 
 
@@ -2650,7 +2650,7 @@
 			break;
 		case 'q':
 			close(fd);
-			printf("\n");
+			puts("");
 			exit(0);
 		case 'r':
 			return;
@@ -3022,7 +3022,7 @@
 			break;
 		case 'q':
 			close(fd);
-			printf("\n");
+			puts("");
 			return 0;
 		case 's':
 #ifdef CONFIG_FEATURE_SUN_LABEL

Modified: trunk/busybox/util-linux/fdisk_osf.c
===================================================================
--- trunk/busybox/util-linux/fdisk_osf.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/util-linux/fdisk_osf.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -512,7 +512,7 @@
 			printf(_(" ecc"));
 		if (lp->d_flags & BSD_D_BADSECT)
 			printf(_(" badsect"));
-		printf("\n");
+		puts("");
 		/* On various machines the fields of *lp are short/int/long */
 		/* In order to avoid problems, we cast them all to long. */
 		printf(_("bytes/sector: %ld\n"), (long) lp->d_secsize);
@@ -579,7 +579,7 @@
 				printf("%22.22s", "");
 				break;
 			}
-			printf("\n");
+			puts("");
 		}
 	}
 }

Modified: trunk/busybox/util-linux/fsck_minix.c
===================================================================
--- trunk/busybox/util-linux/fsck_minix.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/util-linux/fsck_minix.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -322,12 +322,12 @@
 	int c;
 
 	if (!repair) {
-		printf("\n");
+		puts("");
 		errors_uncorrected = 1;
 		return 0;
 	}
 	if (automatic) {
-		printf("\n");
+		puts("");
 		if (!def)
 			errors_uncorrected = 1;
 		return def;

Modified: trunk/busybox/util-linux/getopt.c
===================================================================
--- trunk/busybox/util-linux/getopt.c	2006-10-25 15:07:56 UTC (rev 16437)
+++ trunk/busybox/util-linux/getopt.c	2006-10-26 00:37:00 UTC (rev 16438)
@@ -172,7 +172,7 @@
 		printf(" --");
 		while (optind < argc)
 			printf(" %s",normalize(argv[optind++]));
-		printf("\n");
+		puts("");
 	}
 	return exit_code;
 }




More information about the busybox-cvs mailing list