From 5fee03c1287d0e6981e8da0ce05b8a6f70c53b2e Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 5 Aug 2007 20:41:49 +0000 Subject: 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 --- apps/plugins/test_disk.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/plugins/test_disk.c') 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) log_init(); log_text("test_disk WRITE&VERIFY", true); +#ifndef SIMULATOR rb->snprintf(text_buf, sizeof(text_buf), "CPU clock: %ld Hz", *rb->cpu_frequency); log_text(text_buf, true); +#endif log_text("----------------------", true); rb->snprintf(text_buf, sizeof text_buf, "Data size: %dKB", (TEST_SIZE>>10)); log_text(text_buf, true); @@ -297,9 +299,11 @@ static bool test_speed(void) rb->memset(audiobuf, 'T', audiobuflen); log_init(); log_text("test_disk SPEED TEST", true); +#ifndef SIMULATOR rb->snprintf(text_buf, sizeof(text_buf), "CPU clock: %ld Hz", *rb->cpu_frequency); log_text(text_buf, true); +#endif log_text("--------------------", true); /* File creation speed */ -- cgit v1.2.3