diff options
Diffstat (limited to 'apps/plugins/test_disk.c')
-rw-r--r-- | apps/plugins/test_disk.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/plugins/test_disk.c b/apps/plugins/test_disk.c index edc1dfbddb..91fc3bb405 100644 --- a/apps/plugins/test_disk.c +++ b/apps/plugins/test_disk.c | |||
@@ -105,7 +105,7 @@ static bool test_fs(void) | |||
105 | fd = rb->creat(TEST_FILE); | 105 | fd = rb->creat(TEST_FILE); |
106 | if (fd < 0) | 106 | if (fd < 0) |
107 | { | 107 | { |
108 | rb->splash(0, true, "Couldn't create testfile."); | 108 | rb->splash(0, "Couldn't create testfile."); |
109 | goto error; | 109 | goto error; |
110 | } | 110 | } |
111 | 111 | ||
@@ -123,7 +123,7 @@ static bool test_fs(void) | |||
123 | mem_fill_frnd(buf_start + align, current); | 123 | mem_fill_frnd(buf_start + align, current); |
124 | if (current != rb->write(fd, buf_start + align, current)) | 124 | if (current != rb->write(fd, buf_start + align, current)) |
125 | { | 125 | { |
126 | rb->splash(0, true, "Write error."); | 126 | rb->splash(0, "Write error."); |
127 | rb->close(fd); | 127 | rb->close(fd); |
128 | goto error; | 128 | goto error; |
129 | } | 129 | } |
@@ -134,7 +134,7 @@ static bool test_fs(void) | |||
134 | fd = rb->open(TEST_FILE, O_RDONLY); | 134 | fd = rb->open(TEST_FILE, O_RDONLY); |
135 | if (fd < 0) | 135 | if (fd < 0) |
136 | { | 136 | { |
137 | rb->splash(0, true, "Couldn't open testfile."); | 137 | rb->splash(0, "Couldn't open testfile."); |
138 | goto error; | 138 | goto error; |
139 | } | 139 | } |
140 | 140 | ||
@@ -151,7 +151,7 @@ static bool test_fs(void) | |||
151 | 151 | ||
152 | if (current != rb->read(fd, buf_start + align, current)) | 152 | if (current != rb->read(fd, buf_start + align, current)) |
153 | { | 153 | { |
154 | rb->splash(0, true, "Read error."); | 154 | rb->splash(0, "Read error."); |
155 | rb->close(fd); | 155 | rb->close(fd); |
156 | goto error; | 156 | goto error; |
157 | } | 157 | } |
@@ -196,13 +196,13 @@ static bool test_speed(void) | |||
196 | fd = rb->creat(TEST_FILE); | 196 | fd = rb->creat(TEST_FILE); |
197 | if (fd < 0) | 197 | if (fd < 0) |
198 | { | 198 | { |
199 | rb->splash(0, true, "Couldn't create testfile."); | 199 | rb->splash(0, "Couldn't create testfile."); |
200 | goto error; | 200 | goto error; |
201 | } | 201 | } |
202 | time = *rb->current_tick; | 202 | time = *rb->current_tick; |
203 | if (buf_len != rb->write(fd, buf_start, buf_len)) | 203 | if (buf_len != rb->write(fd, buf_start, buf_len)) |
204 | { | 204 | { |
205 | rb->splash(0, true, "Write error."); | 205 | rb->splash(0, "Write error."); |
206 | rb->close(fd); | 206 | rb->close(fd); |
207 | goto error; | 207 | goto error; |
208 | } | 208 | } |
@@ -215,13 +215,13 @@ static bool test_speed(void) | |||
215 | fd = rb->open(TEST_FILE, O_WRONLY); | 215 | fd = rb->open(TEST_FILE, O_WRONLY); |
216 | if (fd < 0) | 216 | if (fd < 0) |
217 | { | 217 | { |
218 | rb->splash(0, true, "Couldn't open testfile."); | 218 | rb->splash(0, "Couldn't open testfile."); |
219 | goto error; | 219 | goto error; |
220 | } | 220 | } |
221 | time = *rb->current_tick; | 221 | time = *rb->current_tick; |
222 | if (buf_len != rb->write(fd, buf_start, buf_len)) | 222 | if (buf_len != rb->write(fd, buf_start, buf_len)) |
223 | { | 223 | { |
224 | rb->splash(0, true, "Write error."); | 224 | rb->splash(0, "Write error."); |
225 | rb->close(fd); | 225 | rb->close(fd); |
226 | goto error; | 226 | goto error; |
227 | } | 227 | } |
@@ -234,13 +234,13 @@ static bool test_speed(void) | |||
234 | fd = rb->open(TEST_FILE, O_WRONLY); | 234 | fd = rb->open(TEST_FILE, O_WRONLY); |
235 | if (fd < 0) | 235 | if (fd < 0) |
236 | { | 236 | { |
237 | rb->splash(0, true, "Couldn't open testfile."); | 237 | rb->splash(0, "Couldn't open testfile."); |
238 | goto error; | 238 | goto error; |
239 | } | 239 | } |
240 | time = *rb->current_tick; | 240 | time = *rb->current_tick; |
241 | if (buf_len != rb->write(fd, buf_start + 1, buf_len)) | 241 | if (buf_len != rb->write(fd, buf_start + 1, buf_len)) |
242 | { | 242 | { |
243 | rb->splash(0, true, "Write error."); | 243 | rb->splash(0, "Write error."); |
244 | rb->close(fd); | 244 | rb->close(fd); |
245 | goto error; | 245 | goto error; |
246 | } | 246 | } |
@@ -253,13 +253,13 @@ static bool test_speed(void) | |||
253 | fd = rb->open(TEST_FILE, O_RDONLY); | 253 | fd = rb->open(TEST_FILE, O_RDONLY); |
254 | if (fd < 0) | 254 | if (fd < 0) |
255 | { | 255 | { |
256 | rb->splash(0, true, "Couldn't open testfile."); | 256 | rb->splash(0, "Couldn't open testfile."); |
257 | goto error; | 257 | goto error; |
258 | } | 258 | } |
259 | time = *rb->current_tick; | 259 | time = *rb->current_tick; |
260 | if (buf_len != rb->read(fd, buf_start, buf_len)) | 260 | if (buf_len != rb->read(fd, buf_start, buf_len)) |
261 | { | 261 | { |
262 | rb->splash(0, true, "Read error."); | 262 | rb->splash(0, "Read error."); |
263 | rb->close(fd); | 263 | rb->close(fd); |
264 | goto error; | 264 | goto error; |
265 | } | 265 | } |
@@ -272,13 +272,13 @@ static bool test_speed(void) | |||
272 | fd = rb->open(TEST_FILE, O_RDONLY); | 272 | fd = rb->open(TEST_FILE, O_RDONLY); |
273 | if (fd < 0) | 273 | if (fd < 0) |
274 | { | 274 | { |
275 | rb->splash(0, true, "Couldn't open testfile."); | 275 | rb->splash(0, "Couldn't open testfile."); |
276 | goto error; | 276 | goto error; |
277 | } | 277 | } |
278 | time = *rb->current_tick; | 278 | time = *rb->current_tick; |
279 | if (buf_len != rb->read(fd, buf_start + 1, buf_len)) | 279 | if (buf_len != rb->read(fd, buf_start + 1, buf_len)) |
280 | { | 280 | { |
281 | rb->splash(0, true, "Read error."); | 281 | rb->splash(0, "Read error."); |
282 | rb->close(fd); | 282 | rb->close(fd); |
283 | goto error; | 283 | goto error; |
284 | } | 284 | } |