← Commit list

198ea3c86

Mike Frysinger
Mike Frysinger
2005-07-30
FAILED Duration: 10s

Subject

cleanup the error message so we dont use glibcism of %m and cast a pointer to an int (bad on 64bit arches)

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 →

console-tools/dumpkmap.c+2 -2
@@ -77,10 +77,10 @@ int dumpkmap_main(int argc, char **argv)
ke.kb_index = j;
ke.kb_table = i;
if (ioctl(fd, KDGKBENT, &ke) < 0) {
- bb_error_msg("ioctl returned: %m, %s, %s, %xqq",
+ bb_perror_msg("ioctl failed with %s, %s, %p",
(char *)&ke.kb_index,
(char *)&ke.kb_table,
- (int)&ke.kb_value);
+ &ke.kb_value);
} else {
write(1, (void*)&ke.kb_value, 2);
}