← Commit list

710b6ce9b

Denys Vlasenko
Denys Vlasenko
2016-11-27
SUCCESS Duration: 203s

Subject

fdisk_gpt: simplify GPT partition name printing

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

util-linux/fdisk_gpt.c+2 -2
@@ -94,11 +94,11 @@ gpt_print_wide36(uint16_t *s)
while (i < ARRAY_SIZE(buf)-1) {
if (s[i] == 0)
break;
- buf[i] = (s[i] < 0x7f) ? s[i] : '?';
+ buf[i] = (0x20 <= s[i] && s[i] < 0x7f) ? s[i] : '?';
i++;
}
buf[i] = '\0';
- fputs(printable_string(NULL, buf), stdout);
+ fputs(buf, stdout);
#endif
}