aboutsummaryrefslogtreecommitdiff
path: root/miscutils/hdparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/hdparm.c')
-rw-r--r--miscutils/hdparm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index d25a2466e..431a0ad96 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -1436,7 +1436,7 @@ static void flush_buffer_cache(/*int fd*/ void)
1436 fsync(fd); /* flush buffers */ 1436 fsync(fd); /* flush buffers */
1437 ioctl_or_warn(fd, BLKFLSBUF, NULL); /* do it again, big time */ 1437 ioctl_or_warn(fd, BLKFLSBUF, NULL); /* do it again, big time */
1438#ifdef HDIO_DRIVE_CMD 1438#ifdef HDIO_DRIVE_CMD
1439 sleep(1); 1439 sleep1();
1440 if (ioctl(fd, HDIO_DRIVE_CMD, NULL) && errno != EINVAL) { /* await completion */ 1440 if (ioctl(fd, HDIO_DRIVE_CMD, NULL) && errno != EINVAL) { /* await completion */
1441 if (ENABLE_IOCTL_HEX2STR_ERROR) /* To be coherent with ioctl_or_warn */ 1441 if (ENABLE_IOCTL_HEX2STR_ERROR) /* To be coherent with ioctl_or_warn */
1442 bb_simple_perror_msg("HDIO_DRIVE_CMD"); 1442 bb_simple_perror_msg("HDIO_DRIVE_CMD");
@@ -1511,7 +1511,7 @@ static void do_time(int cache /*,int fd*/)
1511 * NB: *small* delay. User is expected to have a clue and to not run 1511 * NB: *small* delay. User is expected to have a clue and to not run
1512 * heavy io in parallel with measurements. */ 1512 * heavy io in parallel with measurements. */
1513 sync(); 1513 sync();
1514 sleep(1); 1514 sleep1();
1515 if (cache) { /* Time cache */ 1515 if (cache) { /* Time cache */
1516 seek_to_zero(); 1516 seek_to_zero();
1517 read_big_block(buf); 1517 read_big_block(buf);