linux/arch/x86/boot/printf.c

// SPDX-License-Identifier: GPL-2.0-only
/* -*- linux-c -*- ------------------------------------------------------- *
 *
 *   Copyright (C) 1991, 1992 Linus Torvalds
 *   Copyright 2007 rPath, Inc. - All Rights Reserved
 *
 * ----------------------------------------------------------------------- */

/*
 * Oh, it's a waste of space, but oh-so-yummy for debugging.  This
 * version of printf() does not include 64-bit support.  "Live with
 * it."
 *
 */

#include "boot.h"

static int skip_atoi(const char **s)
{}

#define ZEROPAD
#define SIGN
#define PLUS
#define SPACE
#define LEFT
#define SMALL
#define SPECIAL

#define __do_div(n, base)

static char *number(char *str, long num, int base, int size, int precision,
		    int type)
{}

int vsprintf(char *buf, const char *fmt, va_list args)
{}

int sprintf(char *buf, const char *fmt, ...)
{}

int printf(const char *fmt, ...)
{}