summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-11-02 08:20:11 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-11-02 08:21:49 +0100
commit08a807b0ad444bf0e46af5093642b024462632a1 (patch)
tree245bba883b77ae05ead42a390b2ddf7251cc0402 /testsuites
parentlibblock: Avoid NULL pointer access (diff)
downloadrtems-08a807b0ad444bf0e46af5093642b024462632a1.tar.bz2
libblock: Print block sizes and count
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/libtests/block14/block14.scn5
-rw-r--r--testsuites/libtests/block14/init.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/testsuites/libtests/block14/block14.scn b/testsuites/libtests/block14/block14.scn
index 009ebb0698..7170522579 100644
--- a/testsuites/libtests/block14/block14.scn
+++ b/testsuites/libtests/block14/block14.scn
@@ -1,4 +1,4 @@
-*** TEST BLOCK 14 ***
+*** BEGIN OF TEST BLOCK 14 ***
action 0
action 1
action 2
@@ -9,6 +9,9 @@ action 6
-------------------------------------------------------------------------------
DEVICE STATISTICS
----------------------+--------------------------------------------------------
+ MEDIA BLOCK SIZE | 0
+ MEDIA BLOCK COUNT | 1
+ BLOCK SIZE | 2
READ HITS | 2
READ MISSES | 3
READ AHEAD TRANSFERS | 2
diff --git a/testsuites/libtests/block14/init.c b/testsuites/libtests/block14/init.c
index 01d2f5e1ba..98282bc931 100644
--- a/testsuites/libtests/block14/init.c
+++ b/testsuites/libtests/block14/init.c
@@ -155,7 +155,7 @@ static void test_actions(rtems_disk_device *dd)
);
}
- rtems_blkdev_print_stats(&dd->stats, rtems_printf_plugin, NULL);
+ rtems_blkdev_print_stats(&dd->stats, 0, 1, 2, rtems_printf_plugin, NULL);
}
static void test(void)