procinfo-18-stat.patch 778 B

12345678910111213141516171819202122
  1. diff -ur procinfo-18/procinfo.c procinfo-18-mod/procinfo.c
  2. --- procinfo-18/procinfo.c 2001-02-25 11:29:16.000000000 +0000
  3. +++ procinfo-18-mod/procinfo.c 2008-04-16 10:16:29.000000000 +0100
  4. @@ -76,7 +76,7 @@
  5. *devicesfp, *filesystemsfp, *interruptsfp, *dmafp, *cmdlinefp,
  6. *versionfp, *cpuinfofp;
  7. -char line[1024], cmdline[1024], booted[40], *version = NULL, *message = NULL;
  8. +char line[4096], cmdline[1024], booted[40], *version = NULL, *message = NULL;
  9. float rate = 1.0; /* per interval or per sec */
  10. @@ -446,7 +446,7 @@
  11. */
  12. char *q;
  13. - if ((q = strstr (p, "PIC"))) {
  14. + if ((q = strstr (p, "PIC")) || (q = strstr (p, "MSI"))) {
  15. while (*q != ' ') /* eat up "PIC" or "PIC-foo" */
  16. q++;
  17. while (*q == ' ') /* eat up spaces */