mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +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) {
|
||||
printf("ELF header:\n");
|
||||
|
||||
String magic = String::format("%s", header.e_ident);
|
||||
printf(" Magic: ");
|
||||
for (char i : magic) {
|
||||
for (char i : StringView { header.e_ident, sizeof(header.e_ident) }) {
|
||||
if (isprint(i)) {
|
||||
printf("%c ", i);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue