/* * Copyright (c) 2025 Onomondo ApS & sysmocom - s.f.m.c. GmbH. All rights reserved. * * SPDX-License-Identifier: AGPL-3.0-only */ #pragma once #include #include /*! macro to print a log line. * \param[in] subsys log subsystem identifier. * \param[in] level log level identifier. * \param[in] fmt formtstring. * \param[in] args formatstring arguments. */ #define IPA_LOGP(subsys, level, fmt, args...) \ ipa_logp(subsys, level, __FILE__, __LINE__, fmt, ## args) void ipa_logp(uint32_t subsys, uint32_t level, const char *file, int line, const char *format, ...) __attribute__((format(printf, 5, 6))); enum log_subsys { SMAIN, SHTTP, SSCARD, SIPA, SES10X, SES10B, SEUICC, SESIPA, _NUM_LOG_SUBSYS }; enum log_level { LERROR, LINFO, LDEBUG, _NUM_LOG_LEVEL };