summaryrefslogtreecommitdiff
path: root/src/VBox/Runtime/common/string/RTStrFormat.cpp
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2021-10-17 18:16:11 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2021-10-17 18:16:11 +0000
commit871094df164960fb50e1cedf2fc95d9c2087edd8 (patch)
tree7edcd2b64c92cdfeaa524670ebe54a16c56bc97d /src/VBox/Runtime/common/string/RTStrFormat.cpp
parent4001e8c4f6412a7ce93336ca97c0bec4c3e19f01 (diff)
downloadVirtualBox-svn-871094df164960fb50e1cedf2fc95d9c2087edd8.tar.gz
SUPDrv,IPRT,VBoxGuest: Don't export ellipsis functions from SUPDrv, as that makes switching back to the kernel stack unsafe. Exports has changes (added+removed), but not bumping major IOC version as that was done a few hours ago already and it's Sunday. bugref:10124
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@91789 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Runtime/common/string/RTStrFormat.cpp')
-rw-r--r--src/VBox/Runtime/common/string/RTStrFormat.cpp49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/VBox/Runtime/common/string/RTStrFormat.cpp b/src/VBox/Runtime/common/string/RTStrFormat.cpp
new file mode 100644
index 00000000000..02f6e31c25a
--- /dev/null
+++ b/src/VBox/Runtime/common/string/RTStrFormat.cpp
@@ -0,0 +1,49 @@
+/* $Id$ */
+/** @file
+ * IPRT - String Formatter, RTStrFormat.
+ */
+
+/*
+ * Copyright (C) 2006-2020 Oracle Corporation
+ *
+ * This file is part of VirtualBox Open Source Edition (OSE), as
+ * available from http://www.virtualbox.org. This file is free software;
+ * you can redistribute it and/or modify it under the terms of the GNU
+ * General Public License (GPL) as published by the Free Software
+ * Foundation, in version 2 as it comes in the "COPYING" file of the
+ * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
+ * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
+ *
+ * The contents of this file may alternatively be used under the terms
+ * of the Common Development and Distribution License Version 1.0
+ * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
+ * VirtualBox OSE distribution, in which case the provisions of the
+ * CDDL are applicable instead of those of the GPL.
+ *
+ * You may elect to license modified versions of this file under the
+ * terms and conditions of either the GPL or the CDDL or both.
+ */
+
+
+/*********************************************************************************************************************************
+* Header Files *
+*********************************************************************************************************************************/
+#define LOG_GROUP RTLOGGROUP_STRING
+#include <iprt/string.h>
+#include "internal/iprt.h"
+
+#include <iprt/stdarg.h>
+
+
+RTDECL(size_t) RTStrFormat(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, PFNSTRFORMAT pfnFormat, void *pvArgFormat,
+ const char *pszFormat, ...)
+{
+ size_t cch;
+ va_list va;
+ va_start(va, pszFormat);
+ cch = RTStrFormatV(pfnOutput, pvArgOutput, pfnFormat, pvArgFormat, pszFormat, va);
+ va_end(va);
+ return cch;
+}
+RT_EXPORT_SYMBOL(RTStrFormat);
+