--- nono/vm/bootloader.cpp 2026/04/29 17:05:41 1.1.1.4 +++ nono/vm/bootloader.cpp 2026/04/29 17:05:59 1.1.1.5 @@ -112,30 +112,30 @@ BootLoader::LoadExecFromFile(LoadInfo *i fd = open(info->path, O_RDONLY); if (fd == -1) { - warn("%s \"%s\" open failed", __func__, info->path); + warn("%s \"%s\"", __method__, info->path); return false; } if (fstat(fd, &st) == -1) { - warn("%s \"%s\" fstat failed", __func__, info->path); + warn("%s \"%s\" fstat failed", __method__, info->path); return false; } if (!S_ISREG(st.st_mode)) { - warnx("%s \"%s\" not a regular file", __func__, info->path); + warnx("%s \"%s\" not a regular file", __method__, info->path); return false; } // 今の所マジック判定は最初の4バイトで出来るので if (st.st_size < 4) { - warnx("%s \"%s\" file too short", __func__, info->path); + warnx("%s \"%s\" file too short", __method__, info->path); return false; } filesize = st.st_size; filedata = (uint8 *)mmap(NULL, filesize, PROT_READ, MAP_PRIVATE, fd, 0); if (filedata == MAP_FAILED) { - warn("%s \"%s\" mmap failed", __func__, info->path); + warn("%s \"%s\" mmap failed", __method__, info->path); return false; } @@ -291,7 +291,7 @@ BootLoader::Load_aout(LoadInfo *info) "(text=%u + data=%u, filesize=%d); loading %d bytes", __func__, info->path, aout.textsize, aout.datasize, (int)info->size, copylen); - /* FALLTHROUGH */ + // FALLTHROUGH } if (aout.entry + copylen > mainram->GetSize()) {