Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
debug.c
00001 /* 00002 * Copyright (c) 2013 Digi International Inc., 00003 * All rights not expressly granted are reserved. 00004 * 00005 * This Source Code Form is subject to the terms of the Mozilla Public 00006 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 00007 * You can obtain one at http://mozilla.org/MPL/2.0/. 00008 * 00009 * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343 00010 * ======================================================================= 00011 */ 00012 #include "connector_config.h" 00013 00014 #if (defined CONNECTOR_DEBUG) 00015 #include <stdio.h> 00016 #include <stdlib.h> 00017 #include <stdarg.h> 00018 00019 00020 void connector_debug_printf(char const * const format, ...) 00021 { 00022 va_list args; 00023 00024 va_start(args, format); 00025 vprintf(format, args); 00026 va_end(args); 00027 fflush(stdout); 00028 } 00029 #else 00030 /* to avoid ISO C forbids an empty translation unit compiler error */ 00031 typedef int dummy; 00032 00033 #endif 00034 00035
Generated on Tue Jul 12 2022 19:18:38 by
1.7.2