summaryrefslogtreecommitdiff
path: root/apps/plugins/test_disk.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-08-05 20:41:49 +0000
committerJens Arnold <amiconn@rockbox.org>2007-08-05 20:41:49 +0000
commit5fee03c1287d0e6981e8da0ce05b8a6f70c53b2e (patch)
tree7227e0a2e4a3cb0f5cbe61cc19c447dda95171f4 /apps/plugins/test_disk.c
parent5e8e9565a252e4962587e79ca94fb574c31d1c26 (diff)
downloadrockbox-5fee03c1287d0e6981e8da0ce05b8a6f70c53b2e.tar.gz
rockbox-5fee03c1287d0e6981e8da0ce05b8a6f70c53b2e.zip
Make test_disk and test_fps plugins compile for the simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14201 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/test_disk.c')
-rw-r--r--apps/plugins/test_disk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/test_disk.c b/apps/plugins/test_disk.c
index 5799f4ce0b..45dc598fc2 100644
--- a/apps/plugins/test_disk.c
+++ b/apps/plugins/test_disk.c
@@ -114,9 +114,11 @@ static bool test_fs(void)
114 114
115 log_init(); 115 log_init();
116 log_text("test_disk WRITE&VERIFY", true); 116 log_text("test_disk WRITE&VERIFY", true);
117#ifndef SIMULATOR
117 rb->snprintf(text_buf, sizeof(text_buf), "CPU clock: %ld Hz", 118 rb->snprintf(text_buf, sizeof(text_buf), "CPU clock: %ld Hz",
118 *rb->cpu_frequency); 119 *rb->cpu_frequency);
119 log_text(text_buf, true); 120 log_text(text_buf, true);
121#endif
120 log_text("----------------------", true); 122 log_text("----------------------", true);
121 rb->snprintf(text_buf, sizeof text_buf, "Data size: %dKB", (TEST_SIZE>>10)); 123 rb->snprintf(text_buf, sizeof text_buf, "Data size: %dKB", (TEST_SIZE>>10));
122 log_text(text_buf, true); 124 log_text(text_buf, true);
@@ -297,9 +299,11 @@ static bool test_speed(void)
297 rb->memset(audiobuf, 'T', audiobuflen); 299 rb->memset(audiobuf, 'T', audiobuflen);
298 log_init(); 300 log_init();
299 log_text("test_disk SPEED TEST", true); 301 log_text("test_disk SPEED TEST", true);
302#ifndef SIMULATOR
300 rb->snprintf(text_buf, sizeof(text_buf), "CPU clock: %ld Hz", 303 rb->snprintf(text_buf, sizeof(text_buf), "CPU clock: %ld Hz",
301 *rb->cpu_frequency); 304 *rb->cpu_frequency);
302 log_text(text_buf, true); 305 log_text(text_buf, true);
306#endif
303 log_text("--------------------", true); 307 log_text("--------------------", true);
304 308
305 /* File creation speed */ 309 /* File creation speed */