1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-14 00:53:49 +01:00
Marian Buschsieweke f8029e8891
tests/sys: use SPDX copyright tags
Co-authored-by: crasbe <crasbe@gmail.com>
2025-11-22 08:48:27 +01:00

31 lines
588 B
C

/*
* SPDX-FileCopyrightText: 2019 Inria
* SPDX-License-Identifier: LGPL-2.1-only
*/
/**
* @file
* @brief Test logging with no format gives the expected output
*
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
*
*/
#include <inttypes.h>
#include "log.h"
int main(void)
{
uint8_t value = 42;
const char *string = "test";
const char *format = "Logging value %d and string %s";
LOG_ERROR(format, value, string);
LOG_WARNING(format, value, string);
LOG_INFO(format, value, string);
LOG_DEBUG(format, value, string);
return 0;
}