diff options
Diffstat (limited to 'ipc/shm.c')
-rw-r--r-- | ipc/shm.c | 42 |
1 files changed, 22 insertions, 20 deletions
@@ -1342,25 +1342,27 @@ static int sysvipc_shm_proc_show(struct seq_file *s, void *it) | |||
1342 | #define SIZE_SPEC "%21lu" | 1342 | #define SIZE_SPEC "%21lu" |
1343 | #endif | 1343 | #endif |
1344 | 1344 | ||
1345 | return seq_printf(s, | 1345 | seq_printf(s, |
1346 | "%10d %10d %4o " SIZE_SPEC " %5u %5u " | 1346 | "%10d %10d %4o " SIZE_SPEC " %5u %5u " |
1347 | "%5lu %5u %5u %5u %5u %10lu %10lu %10lu " | 1347 | "%5lu %5u %5u %5u %5u %10lu %10lu %10lu " |
1348 | SIZE_SPEC " " SIZE_SPEC "\n", | 1348 | SIZE_SPEC " " SIZE_SPEC "\n", |
1349 | shp->shm_perm.key, | 1349 | shp->shm_perm.key, |
1350 | shp->shm_perm.id, | 1350 | shp->shm_perm.id, |
1351 | shp->shm_perm.mode, | 1351 | shp->shm_perm.mode, |
1352 | shp->shm_segsz, | 1352 | shp->shm_segsz, |
1353 | shp->shm_cprid, | 1353 | shp->shm_cprid, |
1354 | shp->shm_lprid, | 1354 | shp->shm_lprid, |
1355 | shp->shm_nattch, | 1355 | shp->shm_nattch, |
1356 | from_kuid_munged(user_ns, shp->shm_perm.uid), | 1356 | from_kuid_munged(user_ns, shp->shm_perm.uid), |
1357 | from_kgid_munged(user_ns, shp->shm_perm.gid), | 1357 | from_kgid_munged(user_ns, shp->shm_perm.gid), |
1358 | from_kuid_munged(user_ns, shp->shm_perm.cuid), | 1358 | from_kuid_munged(user_ns, shp->shm_perm.cuid), |
1359 | from_kgid_munged(user_ns, shp->shm_perm.cgid), | 1359 | from_kgid_munged(user_ns, shp->shm_perm.cgid), |
1360 | shp->shm_atim, | 1360 | shp->shm_atim, |
1361 | shp->shm_dtim, | 1361 | shp->shm_dtim, |
1362 | shp->shm_ctim, | 1362 | shp->shm_ctim, |
1363 | rss * PAGE_SIZE, | 1363 | rss * PAGE_SIZE, |
1364 | swp * PAGE_SIZE); | 1364 | swp * PAGE_SIZE); |
1365 | |||
1366 | return 0; | ||
1365 | } | 1367 | } |
1366 | #endif | 1368 | #endif |