-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Turns out that the code that reports "No page line" and "No swap line"
has been duplicated in two files, one unused (the one Andrew patched),
and the other which had missing logic to set "first = 0" so that it only
complained once on startup.

The attached patch fixes the obvious bug, and has worked in testing here
on lenny.

- -- 
Craig Miskell
Systems Administrator, Catalyst IT
DDI: +64 4 8020427
==
I've got a lovely bunch of coconuts

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJOH59PAAoJENezkH+p+mMXDvEQALLvvbPVpcH8EKzDm89FXzTX
N9ZH9o5JcjkSQrUw+8SlIY+Q2ga/Fy3iw5AbQKjeqeq0oAtggBWfPpbGBwhzvs2Y
c42Qp4hz0VV32MVJi/Bq8X+33Cp2YBSTGIQxkgjK9C0KkBDorJyzX+U9+b+gA6b0
BsiS7cyK+B0rE5tDyj7aQOeOJ9tgOl5jo23ewJfawwi1EHf5eMPrS1YvEwPqnTV3
CciOdpoRYJMgZpm7bB8qDOGSyalFzbo48lnLWCcQzSJdcYgGGWDSaQIhiyO9dYRL
wsA/7LaCV6c43U+otiiaNdU2wFCBezwozrwiFguOSirjUgr7h/AZEOK1YE931Wwc
6+uwNuxffTrjK/QlPn4iP0vF8xe1edFsYNINOXuR8Gflm0iErm1ygp3JASgEloPi
Rd8yP6hK9J4wJVsQm9L2p0GO2y4OypT/AGIw0XQDpjaZTTRxQsX/X5ltuztXTEGi
4lF59+/9bvrVEkXyPpMgACYPKyZ6cqJZLnvdJ36Hf3b6aiQxrvjG/7Nuhe4dxXVA
52GLxGVL81Oz9fjX0sFf9LFVK8rppW1/F0NCn7bbnENwkXOdpHXOS1kAk7t0LFfm
KnYNhOiEqOr/iFZreEiWCEEFIU3xRAFeEd6u0XTpWdo74G7jvFQDE637IoX6faji
YAwgbl+LiXgmEH4p6vE8
=RyHs
-----END PGP SIGNATURE-----
--- net-snmp-5.4.1~dfsg.orig/agent/mibgroup/hardware/cpu/cpu_linux.c
+++ net-snmp-5.4.1~dfsg/agent/mibgroup/hardware/cpu/cpu_linux.c
@@ -284,6 +284,6 @@
            snmp_log(LOG_ERR, "No ctxt line in %s\n", STAT_FILE);
     }
 
-
+  first = 0;
 }

Attachment: net-snmp-logging.patch.sig
Description: Binary data

Reply via email to