sbin/hammer: Fix newly added crc prefix character by 4c09d9c4
commit6c1845d8d03b230cfb718fd6da4784fc67a12c03
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 15 Apr 2017 13:10:33 +0000 (15 16:10 +0300)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 15 Apr 2017 18:47:08 +0000 (15 21:47 +0300)
tree861fdcb5b2ccbd40e9db7fdccd37e10c579aa1e0
parent8037a1b077d0c5f28f27b455bc166b0f146d3d03
sbin/hammer: Fix newly added crc prefix character by 4c09d9c4

4c09d9c4 made hammer show command function get_leaf_crc() use
1. "ocrc=" for old CRC
2. "icrc=" for version 7 CRC
3. "crc=" for others (i.e. bad CRC)

for inodes, but this isn't the same with get_buf_crc() for other records.

4c09d9c4 made get_buf_crc() use
1. "ocrc=" for old CRC
2. "icrc=" for others (i.e. version 7 CRC and bad CRC)

These two functions need to use the same CRC prefix character.
Add "crc=" case to get_buf_crc().
sbin/hammer/cmd_show.c