logger: use better variable names for chip name description

This commit is contained in:
Beat Küng
2016-12-21 08:59:10 +01:00
committed by Lorenz Meier
parent 66a6ce880c
commit 3d0f1e4a4f
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -1390,12 +1390,12 @@ void Logger::write_version()
write_info("sys_toolchain", px4_toolchain_name()); write_info("sys_toolchain", px4_toolchain_name());
write_info("sys_toolchain_ver", px4_toolchain_version()); write_info("sys_toolchain_ver", px4_toolchain_version());
char rev; char revision;
char *revstr; char *chip_name;
if (mcu_version(&rev, &revstr) >= 0) { if (mcu_version(&revision, &chip_name) >= 0) {
char mcu_ver[64]; char mcu_ver[64];
snprintf(mcu_ver, sizeof(mcu_ver), "%s, rev. %c", revstr, rev); snprintf(mcu_ver, sizeof(mcu_ver), "%s, rev. %c", chip_name, revision);
write_info("sys_mcu", mcu_ver); write_info("sys_mcu", mcu_ver);
} }
+1 -1
View File
@@ -71,7 +71,7 @@ PARAM_DEFINE_INT32(SDLOG_MODE, 0);
/** /**
* Log UUID * Log UUID
* *
* If set, add an ID to the log, which uniquely identifies the vehicle * If set to 1, add an ID to the log, which uniquely identifies the vehicle
* *
* @boolean * @boolean
* @group SD Logging * @group SD Logging