summaryrefslogtreecommitdiffstats
path: root/hw/sd
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2018-06-21 19:12:48 +0200
committerStefan Hajnoczi2018-06-29 16:04:18 +0200
commitdcfebcf9a3f350034d5acff6fe6019ce3586438a (patch)
treef81a5041a8e5ee4d83c6a12de22e99d8b2722ec6 /hw/sd
parenttrace: Fix format string for the struct timeval members casted to size_t (diff)
downloadqemu-dcfebcf9a3f350034d5acff6fe6019ce3586438a.tar.gz
qemu-dcfebcf9a3f350034d5acff6fe6019ce3586438a.tar.xz
qemu-dcfebcf9a3f350034d5acff6fe6019ce3586438a.zip
sdcard: Reduce sdcard_set_blocklen() trace digits
Per the Physical Layer Simplified Spec. "5.3 CSD Register": "The maximum block length might therefore be in the range 512...2048 bytes" Therefore 3 hexdigits are enough to report the block length. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/sd')
-rw-r--r--hw/sd/trace-events2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sd/trace-events b/hw/sd/trace-events
index bfd1d62efc..d7880bcea5 100644
--- a/hw/sd/trace-events
+++ b/hw/sd/trace-events
@@ -37,7 +37,7 @@ sdcard_powerup(void) ""
sdcard_inquiry_cmd41(void) ""
sdcard_set_enable(bool current_state, bool new_state) "%u -> %u"
sdcard_reset(void) ""
-sdcard_set_blocklen(uint16_t length) "0x%04x"
+sdcard_set_blocklen(uint16_t length) "0x%03x"
sdcard_inserted(bool readonly) "read_only: %u"
sdcard_ejected(void) ""
sdcard_erase(void) ""