Bug 826178 - Prefix all hexadecimal values with 0x in linker logs. r=nfroyd

This commit is contained in:
Mike Hommey 2013-01-03 16:45:57 +01:00
Родитель 44a3273ff8
Коммит 11eafddbc8
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -102,7 +102,7 @@ private:
TemporaryRef<LibHandle>
CustomElf::Load(Mappable *mappable, const char *path, int flags)
{
debug("CustomElf::Load(\"%s\", %x) = ...", path, flags);
debug("CustomElf::Load(\"%s\", 0x%x) = ...", path, flags);
if (!mappable)
return NULL;
/* Keeping a RefPtr of the CustomElf is going to free the appropriate
@ -219,7 +219,7 @@ CustomElf::Load(Mappable *mappable, const char *path, int flags)
return NULL;
elf->stats("oneLibLoaded");
debug("CustomElf::Load(\"%s\", %x) = %p", path, flags,
debug("CustomElf::Load(\"%s\", 0x%x) = %p", path, flags,
static_cast<void *>(elf));
return elf;
}

Просмотреть файл

@ -166,12 +166,12 @@ SystemElf::Load(const char *path, int flags)
/* The Android linker returns a handle when the file name matches an
* already loaded library, even when the full path doesn't exist */
if (path && path[0] == '/' && (access(path, F_OK) == -1)){
debug("dlopen(\"%s\", %x) = %p", path, flags, (void *)NULL);
debug("dlopen(\"%s\", 0x%x) = %p", path, flags, (void *)NULL);
return NULL;
}
void *handle = dlopen(path, flags);
debug("dlopen(\"%s\", %x) = %p", path, flags, handle);
debug("dlopen(\"%s\", 0x%x) = %p", path, flags, handle);
ElfLoader::Singleton.lastError = dlerror();
if (handle) {
SystemElf *elf = new SystemElf(path, handle);