diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2007-03-17 09:02:53 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2007-03-17 09:02:53 +0000 |
| commit | 79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d (patch) | |
| tree | d5c3fbab0ec01d2b0ca7d5278f15cf45f79b0763 /apps/plugins/test_disk.c | |
| parent | 1329d7d3fde426a290c03ee92b1c701dde49851c (diff) | |
| download | rockbox-79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d.zip rockbox-79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d.tar.gz rockbox-79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d.tar.bz2 rockbox-79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d.tar.xz | |
Let GCC check arguments of some more printf-style functions, also for plugins and codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12815 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/test_disk.c')
| -rw-r--r-- | apps/plugins/test_disk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/test_disk.c b/apps/plugins/test_disk.c index 91fc3bb..e302a62 100644 --- a/apps/plugins/test_disk.c +++ b/apps/plugins/test_disk.c @@ -207,7 +207,7 @@ static bool test_speed(void) goto error; } time = *rb->current_tick - time; - rb->snprintf(text_buf, sizeof text_buf, "Create: %d KByte/s", + rb->snprintf(text_buf, sizeof text_buf, "Create: %ld KByte/s", (25 * buf_len / time) >> 8); log_lcd(text_buf, true); rb->close(fd); @@ -226,7 +226,7 @@ static bool test_speed(void) goto error; } time = *rb->current_tick - time; - rb->snprintf(text_buf, sizeof text_buf, "Write A: %d KByte/s", + rb->snprintf(text_buf, sizeof text_buf, "Write A: %ld KByte/s", (25 * buf_len / time) >> 8); log_lcd(text_buf, true); rb->close(fd); @@ -245,7 +245,7 @@ static bool test_speed(void) goto error; } time = *rb->current_tick - time; - rb->snprintf(text_buf, sizeof text_buf, "Write U: %d KByte/s", + rb->snprintf(text_buf, sizeof text_buf, "Write U: %ld KByte/s", (25 * buf_len / time) >> 8); log_lcd(text_buf, true); rb->close(fd); @@ -264,7 +264,7 @@ static bool test_speed(void) goto error; } time = *rb->current_tick - time; - rb->snprintf(text_buf, sizeof text_buf, "Read A: %d KByte/s", + rb->snprintf(text_buf, sizeof text_buf, "Read A: %ld KByte/s", (25 * buf_len / time) >> 8); log_lcd(text_buf, true); rb->close(fd); @@ -283,7 +283,7 @@ static bool test_speed(void) goto error; } time = *rb->current_tick - time; - rb->snprintf(text_buf, sizeof text_buf, "Read U: %d KByte/s", + rb->snprintf(text_buf, sizeof text_buf, "Read U: %ld KByte/s", (25 * buf_len / time) >> 8); log_lcd(text_buf, true); rb->close(fd); |