commit | 1c3d3cdea1ec549872dca3eae5ebc1d53052045c | [log] [tgz] |
---|---|---|
author | Todd Poynor <toddpoynor@google.com> | Thu Nov 21 11:28:12 2013 -0800 |
committer | Todd Poynor <toddpoynor@google.com> | Thu Nov 21 11:28:12 2013 -0800 |
tree | 9752f06f603fbac8f5d77ff9fa24a68eb253c8d4 | |
parent | c27843f2a9caa513b447faaf90bd27a7ced46703 [diff] [blame] |
healthd: fix runstring option error reporting Change-Id: I548d837afbde8a66826bb2cdb79ede7edda42b1f
diff --git a/healthd/healthd.cpp b/healthd/healthd.cpp index 095ce9d..8363c41 100644 --- a/healthd/healthd.cpp +++ b/healthd/healthd.cpp
@@ -342,7 +342,8 @@ break; case '?': default: - KLOG_ERROR(LOG_TAG, "Unrecognized healthd option: %c\n", ch); + KLOG_ERROR(LOG_TAG, "Unrecognized healthd option: %c\n", + optopt); exit(1); } }