[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 40/43] bsd-user: move qemu_log to later in the file
From: |
imp |
Subject: |
[PATCH v3 40/43] bsd-user: move qemu_log to later in the file |
Date: |
Thu, 2 Sep 2021 17:47:26 -0600 |
From: Warner Losh <imp@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
---
bsd-user/main.c | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 50c8fdc1e2..1de86ae493 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -71,14 +71,6 @@ unsigned long target_dflssiz = TARGET_DFLSSIZ; /* initial
data size limit */
unsigned long target_maxssiz = TARGET_MAXSSIZ; /* max stack size */
unsigned long target_sgrowsiz = TARGET_SGROWSIZ; /* amount to grow stack */
-void gemu_log(const char *fmt, ...)
-{
- va_list ap;
-
- va_start(ap, fmt);
- vfprintf(stderr, fmt, ap);
- va_end(ap);
-}
void fork_start(void)
{
@@ -167,6 +159,15 @@ void init_task_state(TaskState *ts)
ts->sigqueue_table[i].next = NULL;
}
+void gemu_log(const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ vfprintf(stderr, fmt, ap);
+ va_end(ap);
+}
+
static void
adjust_ssize(void)
{
--
2.32.0
- [PATCH v3 28/43] bsd-user: Move stack initializtion into a per-os file., (continued)
- [PATCH v3 28/43] bsd-user: Move stack initializtion into a per-os file., imp, 2021/09/02
- [PATCH v3 36/43] bsd-user: Add target_os_user.h to capture the user/kernel structures, imp, 2021/09/02
- [PATCH v3 27/43] bsd-user: Implement --seed and initialize random state, imp, 2021/09/02
- [PATCH v3 34/43] bsd-user: update debugging in mmap.c, imp, 2021/09/02
- [PATCH v3 43/43] bsd-user: Update mapping to handle reserved and starting conditions, imp, 2021/09/02
- [PATCH v3 40/43] bsd-user: move qemu_log to later in the file,
imp <=
- [PATCH v3 42/43] bsd-user: Add '-0 argv0' option to bsd-user/main.c, imp, 2021/09/02
- [PATCH v3 32/43] bsd-user: Rewrite target system call definintion glue, imp, 2021/09/02
- [PATCH v3 39/43] bsd-user: Refactor load_elf_sections and is_target_elf_binary, imp, 2021/09/02
- [PATCH v3 38/43] bsd-user: elfload.c style catch up patch, imp, 2021/09/02