提交 3f8c9009 编写于 作者: A andrew

8143855: Bad printf formatting in frame_zero.cpp

Summary: Backport subset of 8075967 fix that resolves this issue.
Reviewed-by: dholmes
上级 7a24d17f
/* /*
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright 2007, 2008, 2009, 2010, 2011 Red Hat, Inc. * Copyright 2007, 2008, 2009, 2010, 2011 Red Hat, Inc.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
...@@ -216,7 +216,7 @@ void frame::zero_print_on_error(int frame_index, ...@@ -216,7 +216,7 @@ void frame::zero_print_on_error(int frame_index,
valuebuf[buflen - 1] = '\0'; valuebuf[buflen - 1] = '\0';
// Print the result // Print the result
st->print_cr(" " PTR_FORMAT ": %-21s = %s", addr, fieldbuf, valuebuf); st->print_cr(" " PTR_FORMAT ": %-21s = %s", p2i(addr), fieldbuf, valuebuf);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册