// // -------------------------------------------------------------------------- // Gurux Ltd // // // // Filename: $HeadURL$ // // Version: $Revision$, // $Date$ // $Author$ // // Copyright (c) Gurux Ltd // //--------------------------------------------------------------------------- // // DESCRIPTION // // This file is a part of Gurux Device Framework. // // Gurux Device Framework is Open Source software; you can redistribute it // and/or modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; version 2 of the License. // Gurux Device Framework is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU General Public License for more details. // // This code is licensed under the GNU General Public License v2. // Full text may be retrieved at http://www.gnu.org/licenses/gpl-2.0.txt //--------------------------------------------------------------------------- #include "serverevents.h" #ifdef DLMS_DEBUG #include #endif //DLMS_DEBUG void svr_notifyTrace(const char* str, int err) { #ifdef DLMS_DEBUG if (err != 0) { char tmp[20]; sprintf(tmp, " Error: %d", err); svr_trace(str, tmp); } else { svr_trace(str, " succeeded."); } #endif// DLMS_DEBUG } void svr_notifyTrace2(const char* str, const short ot, const unsigned char* ln, int err) { #ifdef DLMS_DEBUG if (err != 0) { char tmp[20]; sprintf(tmp, " %d:%d.%d.%d.%d.%d.%d Error: %d", ot, ln[0], ln[1], ln[2], ln[3], ln[4], ln[5], err); svr_trace(str, tmp); } else { svr_trace(str, " succeeded."); } #endif// DLMS_DEBUG }