diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-04-19 15:31:00 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-04-19 15:31:00 +0200 |
commit | db34b66fb15e42aaa23eaeaba42bae359e8ea1a4 (patch) | |
tree | 0590f6fe7220b25059ba773bb764c63ae7146984 | |
parent | b36da99cffb20338fdf5cfef3bce9f202b3a4cf1 (diff) | |
download | libnitrokey-db34b66fb15e42aaa23eaeaba42bae359e8ea1a4.tar.gz libnitrokey-db34b66fb15e42aaa23eaeaba42bae359e8ea1a4.tar.bz2 |
Print firmware version details in status
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r-- | libnitrokey/stick10_commands.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libnitrokey/stick10_commands.h b/libnitrokey/stick10_commands.h index f2ffba2..70c6c98 100644 --- a/libnitrokey/stick10_commands.h +++ b/libnitrokey/stick10_commands.h @@ -403,6 +403,8 @@ class GetStatus : Command<CommandID::GET_STATUS> { << "[" << firmware_version << "]" << "\t" << ::nitrokey::misc::hexdump( (const uint8_t *)(&firmware_version), sizeof firmware_version, false); + ss << "firmware_version_st.major:\t" << (int) firmware_version_st.major<< std::endl; + ss << "firmware_version_st.minor:\t" << (int) firmware_version_st.minor<< std::endl; ss << "card_serial_u32:\t" << std::hex << card_serial_u32 << std::endl; ss << "card_serial:\t" << ::nitrokey::misc::hexdump((const uint8_t *)(card_serial), |