]> git.proxmox.com Git - mirror_qemu.git/commitdiff
sdcard: Reduce sdcard_set_blocklen() trace digits
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 21 Jun 2018 17:12:48 +0000 (14:12 -0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 29 Jun 2018 14:04:18 +0000 (15:04 +0100)
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>
hw/sd/trace-events

index bfd1d62efcb677f475141b9fa405ea4697ba35ab..d7880bcea5bc22ed53eac52e86fbcc3f44657e42 100644 (file)
@@ -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) ""