Skip to content

Commit 3c87192

Browse files
PeterDindaroot
authored and
root
committed
Cleanup based on cppcheck pass (GEARS)
1 parent 471edd5 commit 3c87192

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

gears/services/devfile/devfile_hc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int dev_file_syscall_hcall(long long sys_code,
2727
long long bit_vec = sys_pointer_arr[sys_code];
2828
// Here, IOCTL needs to be handled specially because what
2929
// arguments are pointes, etc, depends on the device
30-
DEBUG_PRINT("Initiate syscall hypercall, code: %llu\n",sys_code);
30+
DEBUG_PRINT("Initiate syscall hypercall, code: %llx\n",sys_code);
3131
HCALL(rc,cmd,sys_code,a1,a2,a3,a4,a5,a6,bit_vec);
3232
*sys_errno = cmd;
3333
DEBUG_PRINT("Syscall Hypercall done: rc = %llx errno = %llx\n",rc, *sys_errno);

gears/services/devfile/devfile_preload.c

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ int touch_ptr(volatile char* ptr, int size)
2929
{
3030
int i;
3131
for(i=0;i<size;i+=4096){
32+
// both read and write it
3233
ptr[i] = ptr[i];
3334
}
3435
return 0;

0 commit comments

Comments
 (0)