kernel: avoid dprintf messages for known header types we don't use.

* fix a typo in runtime_loader/count_regions().
This commit is contained in:
Jérôme Duval 2015-10-28 21:20:38 +01:00
parent 4c7d851f15
commit 6c009cde0b
2 changed files with 7 additions and 1 deletions

View File

@ -2231,6 +2231,12 @@ load_kernel_add_on(const char *path)
case PT_DYNAMIC:
image->dynamic_section = programHeaders[i].p_vaddr;
continue;
case PT_INTERP:
// should check here for appropriate interpreter
continue;
case PT_PHDR:
// we don't use it
continue;
default:
dprintf("%s: unhandled pheader type %#" B_PRIx32 "\n", fileName,
programHeaders[i].p_type);

View File

@ -64,7 +64,7 @@ count_regions(const char* imagePath, char const* buff, int phnum, int phentsize)
// will be handled at some other place
break;
case PT_INTERP:
// should check here for appropiate interpreter
// should check here for appropriate interpreter
break;
case PT_NOTE:
// unsupported