*: let libfmt quote strings
This commit is contained in:
@@ -108,7 +108,7 @@ OssMixer::Open()
|
||||
throw MakeErrno("READ_DEVMASK failed");
|
||||
|
||||
if (((1 << volume_control) & devmask) == 0)
|
||||
throw FmtErrno("mixer control \"{}\" not usable",
|
||||
throw FmtErrno("mixer control {:?} not usable",
|
||||
control);
|
||||
}
|
||||
} catch (...) {
|
||||
@@ -134,8 +134,8 @@ OssMixer::GetVolume()
|
||||
|
||||
if (left != right) {
|
||||
FmtWarning(oss_mixer_domain,
|
||||
"volume for left and right is not the same, \"{}\" and "
|
||||
"\"{}\"\n", left, right);
|
||||
"volume for left and right is not the same, {:?} and "
|
||||
"{:?}\n", left, right);
|
||||
}
|
||||
|
||||
return left;
|
||||
|
||||
@@ -161,7 +161,7 @@ parse_volume_scale_factor(const char *value) {
|
||||
float factor = ParseFloat(value, &endptr);
|
||||
|
||||
if (endptr == value || *endptr != '\0' || factor < 0.5f || factor > 5.0f)
|
||||
throw FmtRuntimeError("\"{}\" is not a number in the "
|
||||
throw FmtRuntimeError("{:?} is not a number in the "
|
||||
"range 0.5 to 5.0",
|
||||
value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user