summaryrefslogtreecommitdiff
path: root/examples/second.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-08-09 21:11:18 +0000
committerMartin Baulig <martin@src.gnome.org>1998-08-09 21:11:18 +0000
commit32c0ced22a97fa8e1625c14d8f0164450f6f112d (patch)
tree5b89b325ebfdf2856eff8ed786e9ff21545951cc /examples/second.c
parentfd95ab60a4983c0a315a275bbfee995bcb5f2c25 (diff)
downloadlibgtop-32c0ced22a97fa8e1625c14d8f0164450f6f112d.tar.gz
Renamed `wchan' field to `nwchan'; added `wchan' which is of type `char
1998-08-09 Martin Baulig <martin@home-of-linux.org> * include/glibtop/prockernel.h (glibtop_proc_kernel): Renamed `wchan' field to `nwchan'; added `wchan' which is of type `char [40]'.
Diffstat (limited to 'examples/second.c')
-rw-r--r--examples/second.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/second.c b/examples/second.c
index b63eb341..296e0584 100644
--- a/examples/second.c
+++ b/examples/second.c
@@ -141,7 +141,7 @@ main (int argc, char *argv [])
glibtop_get_proc_kernel (&data.proc_kernel, pid);
printf ("Proc_Kernel PID %5u (0x%08lx): "
- "%lu %lu %lu %lu %lu %lu %lu %lu\n", pid,
+ "%lu %lu %lu %lu %lu %lu %lu %lu (%s)\n", pid,
(unsigned long) data.proc_kernel.flags,
(unsigned long) data.proc_kernel.k_flags,
(unsigned long) data.proc_kernel.min_flt,
@@ -150,7 +150,8 @@ main (int argc, char *argv [])
(unsigned long) data.proc_kernel.cmaj_flt,
(unsigned long) data.proc_kernel.kstk_esp,
(unsigned long) data.proc_kernel.kstk_eip,
- (unsigned long) data.proc_kernel.wchan);
+ (unsigned long) data.proc_kernel.nwchan,
+ data.proc_kernel.wchan);
glibtop_get_proc_segment (&data.proc_segment, pid);