summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ASNMP/asnmp/ChangeLog7
-rw-r--r--ASNMP/asnmp/pdu.cpp4
2 files changed, 9 insertions, 2 deletions
diff --git a/ASNMP/asnmp/ChangeLog b/ASNMP/asnmp/ChangeLog
index ac87d346e43..d517b1480bf 100644
--- a/ASNMP/asnmp/ChangeLog
+++ b/ASNMP/asnmp/ChangeLog
@@ -1,3 +1,10 @@
+Fri May 7 11:40:25 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * pdu.cpp (agent_error_reason):
+
+ Really fixed mismatched sprintf() format specifiers this time
+ around.
+
Thu May 6 11:13:25 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
* oid.cpp (operator+=, OidToStr):
diff --git a/ASNMP/asnmp/pdu.cpp b/ASNMP/asnmp/pdu.cpp
index 49d63b58b6a..de204e58638 100644
--- a/ASNMP/asnmp/pdu.cpp
+++ b/ASNMP/asnmp/pdu.cpp
@@ -316,8 +316,8 @@ const char *Pdu::agent_error_reason()
}
ACE_OS::sprintf(output_,
- "FAIL PDU REPORT: pdu id: %d vb cnt: %d vb idx: %ld \n"
- " msg: %s vb oid: %s value: %s",
+ "FAIL PDU REPORT: pdu id: %lu vb cnt: %d vb idx: %d\n"
+ " msg: %s vb oid: %s value: %s\n",
get_request_id(), n_vbs, get_error_index(),
pmsg, id, val);