aboutsummaryrefslogtreecommitdiff
path: root/bsd-user
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-08-07 08:43:57 -0600
committerWarner Losh <imp@bsdimp.com>2021-09-10 14:13:06 -0600
commitf0f7f9dca986bebf2a0b88dd83f84f5e39a61462 (patch)
treec362b7e3a91c69ce2c28152725b381815dcccd89 /bsd-user
parentc09f12feba6ed3faf06a2a22a988c4428a18eb51 (diff)
bsd-user: move gemu_log to later in the file
Signed-off-by: Warner Losh <imp@bsdimp.com> Acked-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
Diffstat (limited to 'bsd-user')
-rw-r--r--bsd-user/main.c17
1 files 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)
{