1.1 --- a/agent/src/os/bsd/libproc_impl.c Wed Feb 13 11:23:46 2013 +0100 1.2 +++ b/agent/src/os/bsd/libproc_impl.c Wed Feb 13 09:46:19 2013 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2003, 2013, 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 @@ -91,6 +91,14 @@ 1.11 } 1.12 } 1.13 1.14 +void print_error(const char* format,...) { 1.15 + va_list alist; 1.16 + va_start(alist, format); 1.17 + fputs("ERROR: ", stderr); 1.18 + vfprintf(stderr, format, alist); 1.19 + va_end(alist); 1.20 +} 1.21 + 1.22 bool is_debug() { 1.23 return _libsaproc_debug; 1.24 }