aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-08-05 14:11:58 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-05 14:11:58 +0200
commit1fafa440eb80a98d2ae889d7aaf65b3804b7d008 (patch)
tree231f99433dc17a5da43117061f52e01e242f0ea2
parentf5da36c16e911966bcc1d93a77ee308fd791ec1e (diff)
downloadlibnitrokey-1fafa440eb80a98d2ae889d7aaf65b3804b7d008.tar.gz
libnitrokey-1fafa440eb80a98d2ae889d7aaf65b3804b7d008.tar.bz2
Display general config flags as int
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--include/stick10_commands.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/stick10_commands.h b/include/stick10_commands.h
index 2d52352..b9a249d 100644
--- a/include/stick10_commands.h
+++ b/include/stick10_commands.h
@@ -317,9 +317,9 @@ class GetStatus : Command<CommandID::GET_STATUS> {
ss << "general_config:\t"
<< ::nitrokey::misc::hexdump((const char *)(general_config),
sizeof general_config);
- ss << "numlock:\t" << (uint8_t)numlock << std::endl;
- ss << "capslock:\t" << (uint8_t)capslock << std::endl;
- ss << "scrolllock:\t" << (uint8_t)scrolllock << std::endl;
+ ss << "numlock:\t" << (int)numlock << std::endl;
+ ss << "capslock:\t" << (int)capslock << std::endl;
+ ss << "scrolllock:\t" << (int)scrolllock << std::endl;
ss << "enable_user_password:\t" << (bool) enable_user_password << std::endl;
ss << "delete_user_password:\t" << (bool) delete_user_password << std::endl;
@@ -596,9 +596,9 @@ class WriteGeneralConfig : Command<CommandID::WRITE_CONFIG> {
};
std::string dissect() const {
std::stringstream ss;
- ss << "numlock:\t" << (uint8_t)numlock << std::endl;
- ss << "capslock:\t" << (uint8_t)capslock << std::endl;
- ss << "scrolllock:\t" << (uint8_t)scrolllock << std::endl;
+ ss << "numlock:\t" << (int)numlock << std::endl;
+ ss << "capslock:\t" << (int)capslock << std::endl;
+ ss << "scrolllock:\t" << (int)scrolllock << std::endl;
ss << "enable_user_password:\t" << (bool) enable_user_password << std::endl;
ss << "delete_user_password:\t" << (bool) delete_user_password << std::endl;
return ss.str();