changeset 30281 | b1608535e50f |
parent 30241 | 4cf8974e0d20 |
child 30622 | 648d51c142bd |
child 30764 | fec48bf5a827 |
--- a/hotspot/src/share/vm/utilities/vmError.cpp Tue Apr 21 10:23:13 2015 +0200 +++ b/hotspot/src/share/vm/utilities/vmError.cpp Tue Apr 07 14:19:03 2015 +0200 @@ -463,14 +463,7 @@ #else const char *file = _filename; #endif - size_t len = strlen(file); - size_t buflen = sizeof(buf); - - strncpy(buf, file, buflen); - if (len + 10 < buflen) { - sprintf(buf + len, ":%d", _lineno); - } - st->print(" (%s)", buf); + st->print(" (%s:%d)", file, _lineno); } else { st->print(" (0x%x)", _id); }