aboutsummaryrefslogtreecommitdiff
path: root/miscutils/hdparm.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-26 00:37:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-26 00:37:00 +0000
commitc6f188def8c5496dbd65c9be6ca3050286db7227 (patch)
treed8e1e56c728628c15f66cb88a6e54f368c806939 /miscutils/hdparm.c
parente63a0dee9e559110bcaec494ae5e7fc78c4141c7 (diff)
downloadbusybox-w32-c6f188def8c5496dbd65c9be6ca3050286db7227.tar.gz
busybox-w32-c6f188def8c5496dbd65c9be6ca3050286db7227.tar.bz2
busybox-w32-c6f188def8c5496dbd65c9be6ca3050286db7227.zip
silly size savings and capitalization fixes
Diffstat (limited to 'miscutils/hdparm.c')
-rw-r--r--miscutils/hdparm.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index a30f4e0d7..90c163973 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -547,7 +547,7 @@ static void print_ascii(uint16_t *p, uint8_t length) {
547 printf("%c%c",(char)0x00ff&((*p)>>8),(char)(*p)&0x00ff); 547 printf("%c%c",(char)0x00ff&((*p)>>8),(char)(*p)&0x00ff);
548 p++; 548 p++;
549 } 549 }
550 printf("\n"); 550 puts("");
551} 551}
552 552
553// Parse 512 byte disk identification block and print much crap. 553// Parse 512 byte disk identification block and print much crap.
@@ -574,7 +574,7 @@ static void identify(uint16_t *id_supplied)
574 chksum &= 0xff; 574 chksum &= 0xff;
575 575
576 /* check if we recognise the device type */ 576 /* check if we recognise the device type */
577 printf("\n"); 577 puts("");
578 if (!(val[GEN_CONFIG] & NOT_ATA)) 578 if (!(val[GEN_CONFIG] & NOT_ATA))
579 { 579 {
580 dev = ATA_DEV; 580 dev = ATA_DEV;
@@ -706,7 +706,7 @@ static void identify(uint16_t *id_supplied)
706 else if (like_std > std) 706 else if (like_std > std)
707 printf("& some of %u\n",like_std); 707 printf("& some of %u\n",like_std);
708 else 708 else
709 printf("\n"); 709 puts("");
710 } 710 }
711 else 711 else
712 { 712 {
@@ -818,7 +818,7 @@ static void identify(uint16_t *id_supplied)
818 if (bbbig > 1000) 818 if (bbbig > 1000)
819 printf("(%"PRIu64" GB)\n", bbbig/1000); 819 printf("(%"PRIu64" GB)\n", bbbig/1000);
820 else 820 else
821 printf("\n"); 821 puts("");
822 } 822 }
823 823
824 /* hw support of commands (capabilities) */ 824 /* hw support of commands (capabilities) */
@@ -870,7 +870,7 @@ static void identify(uint16_t *id_supplied)
870 if ((like_std > 3) && ((val[CAPAB_1] & VALID) == VALID_VAL)) 870 if ((like_std > 3) && ((val[CAPAB_1] & VALID) == VALID_VAL))
871 printf(", %s device specific minimum\n",(val[CAPAB_1] & MIN_STANDBY_TIMER)?"with":"no"); 871 printf(", %s device specific minimum\n",(val[CAPAB_1] & MIN_STANDBY_TIMER)?"with":"no");
872 else 872 else
873 printf("\n"); 873 puts("");
874 } 874 }
875 printf("\tR/W multiple sector transfer: "); 875 printf("\tR/W multiple sector transfer: ");
876 if ((like_std < 3) && !(val[SECTOR_XFER_MAX] & SECTOR_XFER)) 876 if ((like_std < 3) && !(val[SECTOR_XFER_MAX] & SECTOR_XFER))
@@ -913,7 +913,7 @@ static void identify(uint16_t *id_supplied)
913 printf("\tOverlap support:"); 913 printf("\tOverlap support:");
914 if (val[PKT_REL]) printf(" %uus to release bus.",val[PKT_REL]); 914 if (val[PKT_REL]) printf(" %uus to release bus.",val[PKT_REL]);
915 if (val[SVC_NBSY]) printf(" %uus to clear BSY after SERVICE cmd.",val[SVC_NBSY]); 915 if (val[SVC_NBSY]) printf(" %uus to clear BSY after SERVICE cmd.",val[SVC_NBSY]);
916 printf("\n"); 916 puts("");
917 } 917 }
918 } 918 }
919 919
@@ -944,7 +944,7 @@ static void identify(uint16_t *id_supplied)
944 err_dma += mode_loop(jj,kk,'u',&have_mode); 944 err_dma += mode_loop(jj,kk,'u',&have_mode);
945 } 945 }
946 if (err_dma || !have_mode) printf("(?)"); 946 if (err_dma || !have_mode) printf("(?)");
947 printf("\n"); 947 puts("");
948 948
949 if ((dev == ATAPI_DEV) && (eqpt != CDROM) && (val[CAPAB_0] & DMA_IL_SUP)) 949 if ((dev == ATAPI_DEV) && (eqpt != CDROM) && (val[CAPAB_0] & DMA_IL_SUP))
950 printf("\t\tInterleaved DMA support\n"); 950 printf("\t\tInterleaved DMA support\n");
@@ -955,7 +955,7 @@ static void identify(uint16_t *id_supplied)
955 printf("\t\tCycle time:"); 955 printf("\t\tCycle time:");
956 if (val[DMA_TIME_MIN]) printf(" min=%uns",val[DMA_TIME_MIN]); 956 if (val[DMA_TIME_MIN]) printf(" min=%uns",val[DMA_TIME_MIN]);
957 if (val[DMA_TIME_NORM]) printf(" recommended=%uns",val[DMA_TIME_NORM]); 957 if (val[DMA_TIME_NORM]) printf(" recommended=%uns",val[DMA_TIME_NORM]);
958 printf("\n"); 958 puts("");
959 } 959 }
960 } 960 }
961 961
@@ -971,13 +971,13 @@ static void identify(uint16_t *id_supplied)
971 if (jj & 0x0001) printf("pio%d ",ii); 971 if (jj & 0x0001) printf("pio%d ",ii);
972 jj >>=1; 972 jj >>=1;
973 } 973 }
974 printf("\n"); 974 puts("");
975 } 975 }
976 else if (((min_std < 5) || (eqpt == CDROM)) && (val[PIO_MODE] & MODE) ) 976 else if (((min_std < 5) || (eqpt == CDROM)) && (val[PIO_MODE] & MODE) )
977 { 977 {
978 for (ii = 0; ii <= val[PIO_MODE]>>8; ii++) 978 for (ii = 0; ii <= val[PIO_MODE]>>8; ii++)
979 printf("pio%d ",ii); 979 printf("pio%d ",ii);
980 printf("\n"); 980 puts("");
981 } 981 }
982 else 982 else
983 printf("unknown\n"); 983 printf("unknown\n");
@@ -989,7 +989,7 @@ static void identify(uint16_t *id_supplied)
989 printf("\t\tCycle time:"); 989 printf("\t\tCycle time:");
990 if (val[PIO_NO_FLOW]) printf(" no flow control=%uns", val[PIO_NO_FLOW]); 990 if (val[PIO_NO_FLOW]) printf(" no flow control=%uns", val[PIO_NO_FLOW]);
991 if (val[PIO_FLOW]) printf(" IORDY flow control=%uns", val[PIO_FLOW]); 991 if (val[PIO_FLOW]) printf(" IORDY flow control=%uns", val[PIO_FLOW]);
992 printf("\n"); 992 puts("");
993 } 993 }
994 } 994 }
995 995
@@ -1049,7 +1049,7 @@ static void identify(uint16_t *id_supplied)
1049 printf("\t"); 1049 printf("\t");
1050 if (jj) printf("%umin for %sSECURITY ERASE UNIT. ", jj==ERASE_BITS ? 508 : jj<<1, ""); 1050 if (jj) printf("%umin for %sSECURITY ERASE UNIT. ", jj==ERASE_BITS ? 508 : jj<<1, "");
1051 if (kk) printf("%umin for %sSECURITY ERASE UNIT. ", kk==ERASE_BITS ? 508 : kk<<1, "ENHANCED "); 1051 if (kk) printf("%umin for %sSECURITY ERASE UNIT. ", kk==ERASE_BITS ? 508 : kk<<1, "ENHANCED ");
1052 printf("\n"); 1052 puts("");
1053 } 1053 }
1054 } 1054 }
1055 1055
@@ -1194,7 +1194,7 @@ static void dump_identity(const struct hd_driveid *id)
1194 else 1194 else
1195 printf("off"); 1195 printf("off");
1196 } 1196 }
1197 printf("\n"); 1197 puts("");
1198 1198
1199 if (!(id->field_valid&1)) 1199 if (!(id->field_valid&1))
1200 printf(" (maybe):"); 1200 printf(" (maybe):");