From 035a097325a604235163141425691b965b1e80a0 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 9 Nov 2009 16:45:06 -0800 Subject: [PATCH] only display event code in toString as the Event Viewer does --- bindings/java/src/org/hyperic/sigar/win32/EventLogRecord.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/java/src/org/hyperic/sigar/win32/EventLogRecord.java b/bindings/java/src/org/hyperic/sigar/win32/EventLogRecord.java index cc432970..3ed7cb7c 100644 --- a/bindings/java/src/org/hyperic/sigar/win32/EventLogRecord.java +++ b/bindings/java/src/org/hyperic/sigar/win32/EventLogRecord.java @@ -192,7 +192,7 @@ public class EventLogRecord { "[" + new Date(getTimeGenerated() * 1000) + "] " + "[" + getSource() + "] " + "[" + getCategoryString() + "] " + - "[" + getEventId() + "] " + + "[" + (getEventId() & 0xFFFF) + "] " + "[" + getUserString() + "] " + "[" + getComputerName() + "] " + getMessage();