mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:58:12 +00:00
readelf: Remove an unnecessary String::format()
This commit is contained in:
parent
09cb8aded6
commit
46209ee9d0
1 changed files with 1 additions and 2 deletions
|
@ -492,9 +492,8 @@ int main(int argc, char** argv)
|
||||||
if (display_elf_header) {
|
if (display_elf_header) {
|
||||||
printf("ELF header:\n");
|
printf("ELF header:\n");
|
||||||
|
|
||||||
String magic = String::format("%s", header.e_ident);
|
|
||||||
printf(" Magic: ");
|
printf(" Magic: ");
|
||||||
for (char i : magic) {
|
for (char i : StringView { header.e_ident, sizeof(header.e_ident) }) {
|
||||||
if (isprint(i)) {
|
if (isprint(i)) {
|
||||||
printf("%c ", i);
|
printf("%c ", i);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue