You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The given offset target(off_t) might be cut by (int)cast.
Thus the cast would display wrong offset value out.
Ex.
pcimem /sys/bus/pci/xxx/resource4 0x105867000 w
Output
Target offset is 0x5867000, page size is 4096
Appreciated to fix the cast value output.
Ex.
-printf("Target offset is 0x%x, page size is %ld\n", (int) target, sysconf(_SC_PAGE_SIZE));
+printf("Target offset is 0x%lx, page size is %ld\n", target, sysconf(_SC_PAGE_SIZE));
The text was updated successfully, but these errors were encountered:
The given offset target(off_t) might be cut by (int)cast.
Thus the cast would display wrong offset value out.
Ex.
pcimem /sys/bus/pci/xxx/resource4 0x105867000 w
Output
Target offset is 0x5867000, page size is 4096
Appreciated to fix the cast value output.
Ex.
-printf("Target offset is 0x%x, page size is %ld\n", (int) target, sysconf(_SC_PAGE_SIZE));
+printf("Target offset is 0x%lx, page size is %ld\n", target, sysconf(_SC_PAGE_SIZE));
The text was updated successfully, but these errors were encountered: