src/share/vm/utilities/events.cpp

changeset 6680
78bbf4d43a14
parent 4299
f34d701e952e
child 6782
f73af4455d7d
     1.1 --- a/src/share/vm/utilities/events.cpp	Thu May 15 18:23:26 2014 -0400
     1.2 +++ b/src/share/vm/utilities/events.cpp	Thu May 22 15:52:41 2014 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -82,7 +82,7 @@
    1.11      va_start(ap, format);
    1.12      // Save a copy of begin message and log it.
    1.13      _buffer.printv(format, ap);
    1.14 -    Events::log(NULL, _buffer);
    1.15 +    Events::log(NULL, "%s", _buffer.buffer());
    1.16      va_end(ap);
    1.17    }
    1.18  }
    1.19 @@ -91,6 +91,6 @@
    1.20    if (LogEvents) {
    1.21      // Append " done" to the begin message and log it
    1.22      _buffer.append(" done");
    1.23 -    Events::log(NULL, _buffer);
    1.24 +    Events::log(NULL, "%s", _buffer.buffer());
    1.25    }
    1.26  }

mercurial