[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 39/42] bsd-user: move gemu_log to later in the file
From: |
imp |
Subject: |
[PULL 39/42] bsd-user: move gemu_log to later in the file |
Date: |
Tue, 7 Sep 2021 15:53:29 -0600 |
From: Warner Losh <imp@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Kyle Evans <kevans@FreeBSD.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 71fd9d5aba..768f4ee41e 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -69,14 +69,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)
{
@@ -165,6 +157,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
- [PULL 26/42] bsd-user: *BSD specific siginfo defintions, (continued)
- [PULL 26/42] bsd-user: *BSD specific siginfo defintions, imp, 2021/09/07
- [PULL 30/42] bsd-user: elf cleanup, imp, 2021/09/07
- [PULL 32/42] bsd-user: Rewrite target system call definintion glue, imp, 2021/09/07
- [PULL 11/42] bsd-user: Eliminate elf personality, imp, 2021/09/07
- [PULL 24/42] bsd-user: Create target specific vmparam.h, imp, 2021/09/07
- [PULL 20/42] bsd-user: Move per-cpu code into target_arch_cpu.h, imp, 2021/09/07
- [PULL 31/42] bsd-user: Remove dead #ifdefs from elfload.c, imp, 2021/09/07
- [PULL 33/42] bsd-user: update debugging in mmap.c, imp, 2021/09/07
- [PULL 36/42] bsd-user: add stubbed out core dump support, imp, 2021/09/07
- [PULL 35/42] bsd-user: Add target_os_user.h to capture the user/kernel structures, imp, 2021/09/07
- [PULL 39/42] bsd-user: move gemu_log to later in the file,
imp <=
- [PULL 34/42] bsd-user: Add target_arch_reg to describe a target's register set, imp, 2021/09/07
- [PULL 38/42] bsd-user: Refactor load_elf_sections and is_target_elf_binary, imp, 2021/09/07
- [PULL 40/42] bsd-user: Implement interlock for atomic operations, imp, 2021/09/07
- [PULL 41/42] bsd-user: Add '-0 argv0' option to bsd-user/main.c, imp, 2021/09/07
- [PULL 37/42] bsd-user: elfload.c style catch up patch, imp, 2021/09/07
- [PULL 28/42] bsd-user: Move stack initializtion into a per-os file., imp, 2021/09/07
- [PULL 42/42] bsd-user: Update mapping to handle reserved and starting conditions, imp, 2021/09/07
- Re: [PULL 00/42] bsd-user updates to run hello world, Peter Maydell, 2021/09/09