Use wide printing when outputting debug categories

glibc doesn't like it when wide and narrow printing is mixed.
This fixes a strange beeping when running with debug enabled on glibc.
This commit is contained in:
ridiculousfish 2021-05-08 21:30:08 -07:00
parent aa84a4ba30
commit 37356fed44
2 changed files with 2 additions and 2 deletions

View File

@ -309,7 +309,7 @@ static int fish_parse_opt(int argc, char **argv, fish_cmd_opts_t *opts) {
}
for (auto cat : get_flog_categories()) {
if (cat->enabled) {
printf("Debug enabled for category: %ls\n", cat->name);
std::fwprintf(stdout, L"Debug enabled for category: %ls\n", cat->name);
}
}
break;

View File

@ -935,7 +935,7 @@ int main(int argc, char *argv[]) {
}
for (auto cat : get_flog_categories()) {
if (cat->enabled) {
printf("Debug enabled for category: %ls\n", cat->name);
std::fwprintf(stdout, L"Debug enabled for category: %ls\n", cat->name);
}
}
break;