diff -r 7adae9244bc8 -r 2394a89e89f4 agent/src/os/bsd/libproc_impl.c --- a/agent/src/os/bsd/libproc_impl.c Wed Feb 13 11:23:46 2013 +0100 +++ b/agent/src/os/bsd/libproc_impl.c Wed Feb 13 09:46:19 2013 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -91,6 +91,14 @@ } } +void print_error(const char* format,...) { + va_list alist; + va_start(alist, format); + fputs("ERROR: ", stderr); + vfprintf(stderr, format, alist); + va_end(alist); +} + bool is_debug() { return _libsaproc_debug; }