blob: 03359ae26b309a9a5707557932ac7532b1c60244 [file] [log] [blame]
Sylvain Munaut26bc4652020-09-14 10:19:49 +02001/*
2 * utils.h
3 *
4 * Copyright (C) 2019-2020 Sylvain Munaut <tnt@246tNt.com>
5 * SPDX-License-Identifier: LGPL-3.0-or-later
6 */
7
8#pragma once
9
10#include <stdbool.h>
11
12char *hexstr(void *d, int n, bool space);
Sylvain Munaut7cfe0172022-01-09 16:52:46 +010013
14void _panic(const char *file, int lineno, const char *fmt, ...);
15#define panic(fmt, ...) _panic(__FILE__, __LINE__, fmt, ##__VA_ARGS__)