@@ -151,7 +151,7 @@ func (fd *frontendFD) Ioctl(ctx context.Context, uio usermem.IO, sysno uintptr,
151
151
}
152
152
153
153
if log .IsLogging (log .Debug ) {
154
- ctx .Debugf ("nvproxy: frontend ioctl: nr = %#08x , argSize = %#08x" , nr , argSize )
154
+ ctx .Debugf ("nvproxy: frontend ioctl: nr = %d = %#x , argSize = %d" , nr , nr , argSize )
155
155
}
156
156
157
157
fi := frontendIoctlState {
@@ -329,7 +329,7 @@ func rmAllocMemory(fi *frontendIoctlState) (uintptr, error) {
329
329
}
330
330
331
331
if log .IsLogging (log .Debug ) {
332
- fi .ctx .Debugf ("nvproxy: NV_ESC_RM_ALLOC_MEMORY class %#08x " , ioctlParams .Params .HClass )
332
+ fi .ctx .Debugf ("nvproxy: NV_ESC_RM_ALLOC_MEMORY class %v " , ioctlParams .Params .HClass )
333
333
}
334
334
// See src/nvidia/arch/nvalloc/unix/src/escape.c:RmIoctl() and
335
335
// src/nvidia/interface/deprecated/rmapi_deprecated_allocmemory.c:rmAllocMemoryTable
@@ -338,7 +338,7 @@ func rmAllocMemory(fi *frontendIoctlState) (uintptr, error) {
338
338
case nvgpu .NV01_MEMORY_SYSTEM_OS_DESCRIPTOR :
339
339
return rmAllocOSDescriptor (fi , & ioctlParams )
340
340
default :
341
- fi .ctx .Warningf ("nvproxy: unknown NV_ESC_RM_ALLOC_MEMORY class %#08x " , ioctlParams .Params .HClass )
341
+ fi .ctx .Warningf ("nvproxy: unknown NV_ESC_RM_ALLOC_MEMORY class %v " , ioctlParams .Params .HClass )
342
342
return 0 , linuxerr .EINVAL
343
343
}
344
344
}
@@ -430,7 +430,7 @@ func rmAllocOSDescriptor(fi *frontendIoctlState, ioctlParams *nvgpu.IoctlNVOS02P
430
430
fi .fd .nvp .objsLive [sentryIoctlParams .Params .HObjectNew ] = & o .object
431
431
fi .fd .nvp .objsMu .Unlock ()
432
432
cu .Release ()
433
- fi .ctx .Infof ("nvproxy: pinned pages for OS descriptor with handle %#x " , sentryIoctlParams .Params .HObjectNew )
433
+ fi .ctx .Infof ("nvproxy: pinned pages for OS descriptor with handle %v " , sentryIoctlParams .Params .HObjectNew )
434
434
// Unmap the reserved range, which is no longer required.
435
435
unix .RawSyscall (unix .SYS_MUNMAP , m , uintptr (arLen ), 0 )
436
436
@@ -669,7 +669,7 @@ func rmAlloc(fi *frontendIoctlState) (uintptr, error) {
669
669
670
670
// hClass determines the type of pAllocParms.
671
671
if log .IsLogging (log .Debug ) {
672
- fi .ctx .Debugf ("nvproxy: allocation class %#08x " , ioctlParams .HClass )
672
+ fi .ctx .Debugf ("nvproxy: allocation class %v " , ioctlParams .HClass )
673
673
}
674
674
// Implementors:
675
675
// - To map hClass to a symbol, look in
@@ -681,7 +681,7 @@ func rmAlloc(fi *frontendIoctlState) (uintptr, error) {
681
681
// - Add handling below.
682
682
handler := fi .fd .nvp .abi .allocationClass [ioctlParams .HClass ]
683
683
if handler == nil {
684
- fi .ctx .Warningf ("nvproxy: unknown allocation class %#08x " , ioctlParams .HClass )
684
+ fi .ctx .Warningf ("nvproxy: unknown allocation class %v " , ioctlParams .HClass )
685
685
// Compare
686
686
// src/nvidia/src/kernel/rmapi/alloc_free.c:serverAllocResourceUnderLock(),
687
687
// when RsResInfoByExternalClassId() is null.
0 commit comments