src/share/vm/opto/idealGraphPrinter.cpp

changeset 6680
78bbf4d43a14
parent 6488
4cdf4f71177d
child 6876
710a3c8b516e
child 9325
6ab57fe8b51f
     1.1 --- a/src/share/vm/opto/idealGraphPrinter.cpp	Thu May 15 18:23:26 2014 -0400
     1.2 +++ b/src/share/vm/opto/idealGraphPrinter.cpp	Thu May 22 15:52:41 2014 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2007, 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 @@ -155,7 +155,7 @@
    1.11      } else {
    1.12        // It would be nice if we could shut down cleanly but it should
    1.13        // be an error if we can't connect to the visualizer.
    1.14 -      fatal(err_msg_res("Couldn't connect to visualizer at %s:%d",
    1.15 +      fatal(err_msg_res("Couldn't connect to visualizer at %s:" INTX_FORMAT,
    1.16                          PrintIdealGraphAddress, PrintIdealGraphPort));
    1.17      }
    1.18    }
    1.19 @@ -195,7 +195,7 @@
    1.20  
    1.21  
    1.22  void IdealGraphPrinter::begin_elem(const char *s) {
    1.23 -  _xml->begin_elem(s);
    1.24 +  _xml->begin_elem("%s", s);
    1.25  }
    1.26  
    1.27  void IdealGraphPrinter::end_elem() {
    1.28 @@ -203,7 +203,7 @@
    1.29  }
    1.30  
    1.31  void IdealGraphPrinter::begin_head(const char *s) {
    1.32 -  _xml->begin_head(s);
    1.33 +  _xml->begin_head("%s", s);
    1.34  }
    1.35  
    1.36  void IdealGraphPrinter::end_head() {
    1.37 @@ -223,7 +223,7 @@
    1.38  }
    1.39  
    1.40  void IdealGraphPrinter::head(const char *name) {
    1.41 -  _xml->head(name);
    1.42 +  _xml->head("%s", name);
    1.43  }
    1.44  
    1.45  void IdealGraphPrinter::tail(const char *name) {
    1.46 @@ -231,7 +231,7 @@
    1.47  }
    1.48  
    1.49  void IdealGraphPrinter::text(const char *s) {
    1.50 -  _xml->text(s);
    1.51 +  _xml->text("%s", s);
    1.52  }
    1.53  
    1.54  void IdealGraphPrinter::print_prop(const char *name, int val) {
    1.55 @@ -359,7 +359,7 @@
    1.56  void IdealGraphPrinter::print_indent() {
    1.57    tty->print_cr("printing ident %d", _depth);
    1.58    for (int i = 0; i < _depth; i++) {
    1.59 -    _xml->print(INDENT);
    1.60 +    _xml->print("%s", INDENT);
    1.61    }
    1.62  }
    1.63  

mercurial