summaryrefslogtreecommitdiff
path: root/update_engine_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'update_engine_client.cc')
-rw-r--r--update_engine_client.cc17
1 files changed, 3 insertions, 14 deletions
diff --git a/update_engine_client.cc b/update_engine_client.cc
index 1b680d12..954e856d 100644
--- a/update_engine_client.cc
+++ b/update_engine_client.cc
@@ -41,6 +41,7 @@
using chromeos_update_engine::EolStatus;
using chromeos_update_engine::ErrorCode;
+using chromeos_update_engine::UpdateEngineStatusToString;
using chromeos_update_engine::UpdateStatusToString;
using chromeos_update_engine::utils::ErrorCodeToString;
using std::string;
@@ -138,12 +139,7 @@ class WatchingStatusUpdateHandler : public ExitingStatusUpdateHandler {
void WatchingStatusUpdateHandler::HandleStatusUpdate(
const UpdateEngineStatus& status) {
- LOG(INFO) << "Got status update:";
- LOG(INFO) << " last_checked_time: " << status.last_checked_time;
- LOG(INFO) << " progress: " << status.progress;
- LOG(INFO) << " current_operation: " << UpdateStatusToString(status.status);
- LOG(INFO) << " new_version: " << status.new_version;
- LOG(INFO) << " new_size: " << status.new_size_bytes;
+ LOG(INFO) << "Got status update: " << UpdateEngineStatusToString(status);
}
bool UpdateEngineClient::ShowStatus() {
@@ -161,14 +157,7 @@ bool UpdateEngineClient::ShowStatus() {
base::TimeDelta::FromSeconds(kShowStatusRetryIntervalInSeconds));
}
- printf("LAST_CHECKED_TIME=%" PRIi64
- "\nPROGRESS=%f\nCURRENT_OP=%s\n"
- "NEW_VERSION=%s\nNEW_SIZE=%" PRIi64 "\n",
- status.last_checked_time,
- status.progress,
- UpdateStatusToString(status.status),
- status.new_version.c_str(),
- status.new_size_bytes);
+ printf("%s", UpdateEngineStatusToString(status).c_str());
return true;
}