output/Print: use %u for the index

This commit is contained in:
Max Kellermann 2017-12-19 10:33:37 +01:00
parent 914df18bf9
commit 503063cddc

View File

@ -34,7 +34,7 @@ printAudioDevices(Response &r, const MultipleOutputs &outputs)
for (unsigned i = 0, n = outputs.Size(); i != n; ++i) { for (unsigned i = 0, n = outputs.Size(); i != n; ++i) {
const auto &ao = outputs.Get(i); const auto &ao = outputs.Get(i);
r.Format("outputid: %i\n" r.Format("outputid: %u\n"
"outputname: %s\n" "outputname: %s\n"
"outputenabled: %i\n", "outputenabled: %i\n",
i, ao.GetName(), ao.IsEnabled()); i, ao.GetName(), ao.IsEnabled());