diff --git a/init/service_parser.cpp b/init/service_parser.cpp index a1b2cc55f..92e350be6 100644 --- a/init/service_parser.cpp +++ b/init/service_parser.cpp @@ -179,8 +179,9 @@ Result ServiceParser::ParsePriority(std::vector&& args) { if (!ParseInt(args[1], &service_->proc_attr_.priority, static_cast(ANDROID_PRIORITY_HIGHEST), // highest is negative static_cast(ANDROID_PRIORITY_LOWEST))) { - return Errorf("process priority value must be range {} - {}", ANDROID_PRIORITY_HIGHEST, - ANDROID_PRIORITY_LOWEST); + return Errorf("process priority value must be range {} - {}", + static_cast(ANDROID_PRIORITY_HIGHEST), + static_cast(ANDROID_PRIORITY_LOWEST)); } return {}; }