@@ -803,7 +803,7 @@ void ErrorNonSelfAMDGPU::PrintMallocStack() {
803
803
" (or free) call of size %u from%s\n " ,
804
804
d.Location (), (void *)device_address[0 ],
805
805
(u32 )(device_address[0 ] - (plo + offset)), d.Allocation (),
806
- ((int *)plo)[7 ], d.Default ());
806
+ ((u32 *)plo)[7 ], d.Default ());
807
807
// TODO: The code object with the malloc call may not be the same
808
808
// code object trying the illegal access. A mechanism is needed
809
809
// to obtain the former.
@@ -819,7 +819,7 @@ void ErrorNonSelfAMDGPU::PrintMallocStack() {
819
819
d.Location (), (void *)device_address[0 ],
820
820
(u32 )((phi + offset) - device_address[0 ]),
821
821
822
- d.Allocation (), ((int *)phi)[7 ], d.Default ());
822
+ d.Allocation (), ((u32 *)phi)[7 ], d.Default ());
823
823
PrintStack ();
824
824
}
825
825
}
@@ -830,9 +830,9 @@ void ErrorNonSelfAMDGPU::Print() {
830
830
Printf (" %s" , d.Error ());
831
831
Report (" ERROR: AddressSanitizer: %s on amdgpu device %d at pc %p\n " ,
832
832
bug_descr, device_id, (void *)callstack[0 ]);
833
- Printf (" %s%s of size %zu in workgroup id (%zu,%zu,%zu )\n " , d.Access (),
834
- (is_write ? " WRITE" : " READ" ), access_size, (usize) wg.idx ,
835
- (usize) wg.idy , (usize) wg.idz );
833
+ Printf (" %s%s of size %zu in workgroup id (%llu,%llu,%llu )\n " , d.Access (),
834
+ (is_write ? " WRITE" : " READ" ), access_size, wg.idx ,
835
+ wg.idy , wg.idz );
836
836
Printf (" %s" , d.Default ());
837
837
PrintStack ();
838
838
Printf (" %s" , d.Location ());
0 commit comments