2
* IPRT - Message Formatting.
6
* Copyright (C) 2009 Sun Microsystems, Inc.
8
* This file is part of VirtualBox Open Source Edition (OSE), as
9
* available from http://www.virtualbox.org. This file is free software;
10
* you can redistribute it and/or modify it under the terms of the GNU
11
* General Public License (GPL) as published by the Free Software
12
* Foundation, in version 2 as it comes in the "COPYING" file of the
13
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16
* The contents of this file may alternatively be used under the terms
17
* of the Common Development and Distribution License Version 1.0
18
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
19
* VirtualBox OSE distribution, in which case the provisions of the
20
* CDDL are applicable instead of those of the GPL.
22
* You may elect to license modified versions of this file under the
23
* terms and conditions of either the GPL or the CDDL or both.
25
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
26
* Clara, CA 95054 USA or visit http://www.sun.com if you need
27
* additional information or have any questions.
33
#include <iprt/cdefs.h>
34
#include <iprt/types.h>
35
#include <iprt/stdarg.h>
39
/** @defgroup grp_rt_msg RTMsg - Message Formatting
45
* Print error message to standard error.
47
* The message will be prefixed with the file name part of process image name
48
* (i.e. no path) and "error: ". If the message doesn't end with a new line,
49
* one will be added. The caller should call this with an empty string if
50
* unsure whether the cursor is currently position at the start of a new line.
52
* @returns IPRT status code.
53
* @param pszFormat The message format string.
54
* @param ... Format arguments.
56
RTDECL(int) RTMsgError(const char *pszFormat, ...);
59
* Print error message to standard error.
61
* The message will be prefixed with the file name part of process image name
62
* (i.e. no path) and "error: ". If the message doesn't end with a new line,
63
* one will be added. The caller should call this with an empty string if
64
* unsure whether the cursor is currently position at the start of a new line.
66
* @returns IPRT status code.
67
* @param pszFormat The message format string.
68
* @param va Format arguments.
70
RTDECL(int) RTMsgErrorV(const char *pszFormat, va_list va);