1/* 2 * Copyright (c) 2017, ETH Zurich. 3 * All rights reserved. 4 * 5 * This file is distributed under the terms in the attached LICENSE file. 6 * If you do not find this file, copies can be found by writing to: 7 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. 8 */ 9 10#ifndef SKB_INTERNAL_H_ 11#define SKB_INTERNAL_H_ 12 13#include <barrelfish/debug.h> 14#include <skb/skb.h> 15 16int skb_vsnprintf (char *str, size_t count, const char *fmt, va_list args); 17int skb_sscanf(const char *ibuf, const char *fmt, ...); 18int skb_vsscanf(const char *str, const char *format, va_list args); 19int skb_snprintf(char *str, size_t count, const char *fmt, ...); 20 21 22/***************************************************************** 23 * Debug printer: 24 *****************************************************************/ 25 26#if defined(SKB_CLIENT_DEBUG) || defined(GLOBAL_DEBUG) 27#define SKB_DEBUG(x...) printf("skb_client: " x) 28#else 29#define SKB_DEBUG(x...) ((void)0) 30#endif 31 32#endif // SKB_INTERNAL_H_ 33