[sanitizer] Print addresses in hexadecimal.
llvm-svn: 208089
This commit is contained in:
		
							parent
							
								
									4a39c84c91
								
							
						
					
					
						commit
						aa44aaee90
					
				| 
						 | 
					@ -136,7 +136,7 @@ void *MmapFixedNoReserve(uptr fixed_addr, uptr size) {
 | 
				
			||||||
  int reserrno;
 | 
					  int reserrno;
 | 
				
			||||||
  if (internal_iserror(p, &reserrno))
 | 
					  if (internal_iserror(p, &reserrno))
 | 
				
			||||||
    Report("ERROR: %s failed to "
 | 
					    Report("ERROR: %s failed to "
 | 
				
			||||||
           "allocate 0x%zx (%zd) bytes at address %zu (errno: %d)\n",
 | 
					           "allocate 0x%zx (%zd) bytes at address %zx (errno: %d)\n",
 | 
				
			||||||
           SanitizerToolName, size, size, fixed_addr, reserrno);
 | 
					           SanitizerToolName, size, size, fixed_addr, reserrno);
 | 
				
			||||||
  IncreaseTotalMmap(size);
 | 
					  IncreaseTotalMmap(size);
 | 
				
			||||||
  return (void *)p;
 | 
					  return (void *)p;
 | 
				
			||||||
| 
						 | 
					@ -152,7 +152,7 @@ void *MmapFixedOrDie(uptr fixed_addr, uptr size) {
 | 
				
			||||||
  int reserrno;
 | 
					  int reserrno;
 | 
				
			||||||
  if (internal_iserror(p, &reserrno)) {
 | 
					  if (internal_iserror(p, &reserrno)) {
 | 
				
			||||||
    Report("ERROR: %s failed to "
 | 
					    Report("ERROR: %s failed to "
 | 
				
			||||||
           "allocate 0x%zx (%zd) bytes at address %zu (errno: %d)\n",
 | 
					           "allocate 0x%zx (%zd) bytes at address %zx (errno: %d)\n",
 | 
				
			||||||
           SanitizerToolName, size, size, fixed_addr, reserrno);
 | 
					           SanitizerToolName, size, size, fixed_addr, reserrno);
 | 
				
			||||||
    CHECK("unable to mmap" && 0);
 | 
					    CHECK("unable to mmap" && 0);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue