FreeBSD Bugzilla – Attachment 240417 Details for
Bug 265937
[Linuxulator]: linprocfs: process size incorrect
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Remove P2K when printing ki_size in 'stat' file
linprocfs.patch (text/plain), 660 bytes, created by
Fernando ApesteguĂa
on 2023-02-26 09:44:01 UTC
(
hide
)
Description:
Remove P2K when printing ki_size in 'stat' file
Filename:
MIME Type:
Creator:
Fernando ApesteguĂa
Created:
2023-02-26 09:44:01 UTC
Size:
660 bytes
patch
obsolete
>diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c >index 83b00dc0d7c2..24909aab4e84 100644 >--- a/sys/compat/linprocfs/linprocfs.c >+++ b/sys/compat/linprocfs/linprocfs.c >@@ -1023,7 +1023,7 @@ linprocfs_doprocstat(PFS_FILL_ARGS) > PS_ADD("0", "%d", 0); /* removed field */ > PS_ADD("itrealvalue", "%d", 0); /* XXX */ > PS_ADD("starttime", "%lu", TV2J(&kp.ki_start) - TV2J(&boottime)); >- PS_ADD("vsize", "%ju", P2K((uintmax_t)kp.ki_size)); >+ PS_ADD("vsize", "%ju", kp.ki_size); > PS_ADD("rss", "%ju", (uintmax_t)kp.ki_rssize); > PS_ADD("rlim", "%lu", kp.ki_rusage.ru_maxrss); > PS_ADD("startcode", "%ju", (uintmax_t)startcode);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 265937
: 240417