Blame dmioutput.c

Packit Bot 613a53
/*
Packit Bot 613a53
 * Generic output functions
Packit Bot 613a53
 * This file is part of the dmidecode project.
Packit Bot 613a53
 *
Packit Bot 613a53
 *   Copyright (C) 2020 Jean Delvare <jdelvare@suse.de>
Packit Bot 613a53
 *
Packit Bot 613a53
 *   This program is free software; you can redistribute it and/or modify
Packit Bot 613a53
 *   it under the terms of the GNU General Public License as published by
Packit Bot 613a53
 *   the Free Software Foundation; either version 2 of the License, or
Packit Bot 613a53
 *   (at your option) any later version.
Packit Bot 613a53
 *
Packit Bot 613a53
 *   This program is distributed in the hope that it will be useful,
Packit Bot 613a53
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot 613a53
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Bot 613a53
 *   GNU General Public License for more details.
Packit Bot 613a53
 *
Packit Bot 613a53
 *   You should have received a copy of the GNU General Public License
Packit Bot 613a53
 *   along with this program; if not, write to the Free Software
Packit Bot 613a53
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
Packit Bot 613a53
 */
Packit Bot 613a53
Packit Bot 613a53
#include <stdarg.h>
Packit Bot 613a53
#include <stdio.h>
Packit Bot 613a53
#include "dmioutput.h"
Packit Bot 613a53
Packit Bot 613a53
void pr_comment(const char *format, ...)
Packit Bot 613a53
{
Packit Bot 613a53
	va_list args;
Packit Bot 613a53
Packit Bot 613a53
	printf("# ");
Packit Bot 613a53
	va_start(args, format);
Packit Bot 613a53
	vprintf(format, args);
Packit Bot 613a53
	va_end(args);
Packit Bot 613a53
	printf("\n");
Packit Bot 613a53
}
Packit Bot ca9862
Packit Bot ca9862
void pr_info(const char *format, ...)
Packit Bot ca9862
{
Packit Bot ca9862
	va_list args;
Packit Bot ca9862
Packit Bot ca9862
	va_start(args, format);
Packit Bot ca9862
	vprintf(format, args);
Packit Bot ca9862
	va_end(args);
Packit Bot ca9862
	printf("\n");
Packit Bot ca9862
}