8155089: UL: Remove trailing comma from log decoration list
authorysuenaga
Wed, 27 Apr 2016 21:00:45 +0900
changeset 38124 c576864b4776
parent 38111 02d1ce4fb721
child 38125 1ad0239b6e4a
8155089: UL: Remove trailing comma from log decoration list Reviewed-by: dsamersoff, mlarsson
hotspot/src/share/vm/logging/logConfiguration.cpp
--- a/hotspot/src/share/vm/logging/logConfiguration.cpp	Thu Apr 28 09:10:10 2016 +0000
+++ b/hotspot/src/share/vm/logging/logConfiguration.cpp	Wed Apr 27 21:00:45 2016 +0900
@@ -408,10 +408,12 @@
   out->print_cr("Log output configuration:");
   for (size_t i = 0; i < _n_outputs; i++) {
     out->print("#" SIZE_FORMAT ": %s %s ", i, _outputs[i]->name(), _outputs[i]->config_string());
+    char delimiter[2] = {0};
     for (size_t d = 0; d < LogDecorators::Count; d++) {
       LogDecorators::Decorator decorator = static_cast<LogDecorators::Decorator>(d);
       if (_outputs[i]->decorators().is_decorator(decorator)) {
-        out->print("%s,", LogDecorators::name(decorator));
+        out->print("%s%s", delimiter, LogDecorators::name(decorator));
+        *delimiter = ',';
       }
     }
     out->cr();