agent/src/os/linux/libproc_impl.c

changeset 4599
2394a89e89f4
parent 3546
54d3535a6dd3
child 6876
710a3c8b516e
child 9627
d626acee4654
equal deleted inserted replaced
4598:7adae9244bc8 4599:2394a89e89f4
1 /* 1 /*
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
90 vfprintf(stderr, format, alist); 90 vfprintf(stderr, format, alist);
91 va_end(alist); 91 va_end(alist);
92 } 92 }
93 } 93 }
94 94
95 void print_error(const char* format,...) {
96 va_list alist;
97 va_start(alist, format);
98 fputs("ERROR: ", stderr);
99 vfprintf(stderr, format, alist);
100 va_end(alist);
101 }
102
95 bool is_debug() { 103 bool is_debug() {
96 return _libsaproc_debug; 104 return _libsaproc_debug;
97 } 105 }
98 106
99 // initialize libproc 107 // initialize libproc

mercurial