# HG changeset patch # User mlarsson # Date 1459756797 -7200 # Node ID ddd59c67dc03fd15fcf9b541a7cb9dc633de04a4 # Parent 3d0a96116bffa938af7f515decfe38bf8de43b73# Parent a6cda2376a19f8cd8522f0bee837ffc351a9b409 Merge diff -r 3d0a96116bff -r ddd59c67dc03 hotspot/src/share/vm/logging/log.cpp --- a/hotspot/src/share/vm/logging/log.cpp Fri Apr 01 10:16:31 2016 +0200 +++ b/hotspot/src/share/vm/logging/log.cpp Mon Apr 04 09:59:57 2016 +0200 @@ -124,7 +124,7 @@ // Enable 'logging=info', verifying it has been set LogConfiguration::configure_stdout(LogLevel::Info, true, LOG_TAGS(logging)); - assert_str_eq("logging=info,", stdoutput->config_string()); + assert_str_eq("logging=info", stdoutput->config_string()); assert(log_is_enabled(Info, logging), "logging was not properly enabled"); // Enable 'gc=debug' (no wildcard), verifying no other tags are enabled diff -r 3d0a96116bff -r ddd59c67dc03 hotspot/src/share/vm/logging/logOutput.cpp --- a/hotspot/src/share/vm/logging/logOutput.cpp Fri Apr 01 10:16:31 2016 +0200 +++ b/hotspot/src/share/vm/logging/logOutput.cpp Mon Apr 04 09:59:57 2016 +0200 @@ -56,6 +56,11 @@ } size_t offset = strlen(_config_string); + if (offset > 0) { + // Add commas in-between tag and level combinations in the config string + _config_string[offset++] = ','; + } + for (;;) { int ret = ts->label(_config_string + offset, _config_string_buffer_size - offset, "+"); if (ret == -1) { @@ -69,7 +74,7 @@ offset = strlen(_config_string); for (;;) { - int ret = jio_snprintf(_config_string + offset, _config_string_buffer_size - offset, "=%s,", LogLevel::name(level)); + int ret = jio_snprintf(_config_string + offset, _config_string_buffer_size - offset, "=%s", LogLevel::name(level)); if (ret == -1) { _config_string_buffer_size *= 2; _config_string = REALLOC_C_HEAP_ARRAY(char, _config_string, _config_string_buffer_size, mtLogging);