equal
deleted
inserted
replaced
1 // |
1 // |
2 // Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. |
2 // Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved. |
3 // DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 // DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 // |
4 // |
5 // This code is free software; you can redistribute it and/or modify it |
5 // This code is free software; you can redistribute it and/or modify it |
6 // under the terms of the GNU General Public License version 2 only, as |
6 // under the terms of the GNU General Public License version 2 only, as |
7 // published by the Free Software Foundation. |
7 // published by the Free Software Foundation. |
1293 } |
1293 } |
1294 |
1294 |
1295 #ifndef PRODUCT |
1295 #ifndef PRODUCT |
1296 ATTRIBUTE_PRINTF(2, 3) |
1296 ATTRIBUTE_PRINTF(2, 3) |
1297 static void print_helper(outputStream* st, const char* format, ...) { |
1297 static void print_helper(outputStream* st, const char* format, ...) { |
1298 if (st->position() > 0) { |
1298 const int tab_size = 8; |
|
1299 if (st->position() > tab_size) { |
1299 st->cr(); |
1300 st->cr(); |
1300 st->sp(); |
1301 st->sp(); |
1301 } |
1302 } |
1302 va_list ap; |
1303 va_list ap; |
1303 va_start(ap, format); |
1304 va_start(ap, format); |