зеркало из https://github.com/mozilla/gecko-dev.git
Bug 826178 - Prefix all hexadecimal values with 0x in linker logs. r=nfroyd
This commit is contained in:
Родитель
44a3273ff8
Коммит
11eafddbc8
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче