8143855: Bad printf formatting in frame_zero.cpp

Thu, 26 Nov 2015 03:40:07 +0000

author
andrew
date
Thu, 26 Nov 2015 03:40:07 +0000
changeset 8180
4a4a5b8b3dfe
parent 8179
110735ab93ec
child 8181
f87db3f01e3f

8143855: Bad printf formatting in frame_zero.cpp
Summary: Backport subset of 8075967 fix that resolves this issue.
Reviewed-by: dholmes

src/cpu/zero/vm/frame_zero.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/cpu/zero/vm/frame_zero.cpp	Wed Nov 04 13:38:38 2015 +0100
     1.2 +++ b/src/cpu/zero/vm/frame_zero.cpp	Thu Nov 26 03:40:07 2015 +0000
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
     1.7   * Copyright 2007, 2008, 2009, 2010, 2011 Red Hat, Inc.
     1.8   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.9   *
    1.10 @@ -216,7 +216,7 @@
    1.11      valuebuf[buflen - 1] = '\0';
    1.12  
    1.13      // Print the result
    1.14 -    st->print_cr(" " PTR_FORMAT ": %-21s = %s", addr, fieldbuf, valuebuf);
    1.15 +    st->print_cr(" " PTR_FORMAT ": %-21s = %s", p2i(addr), fieldbuf, valuebuf);
    1.16    }
    1.17  }
    1.18  

mercurial