healthd: fix runstring option error reporting

Change-Id: I548d837afbde8a66826bb2cdb79ede7edda42b1f
This commit is contained in:
Todd Poynor 2013-11-21 11:28:12 -08:00
parent c27843f2a9
commit 1c3d3cdea1
1 changed files with 2 additions and 1 deletions

View File

@ -342,7 +342,8 @@ int main(int argc, char **argv) {
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);
}
}