diff --git a/platform/cooja/node-id.h b/platform/cooja/node-id.h index 75c6b7436..f671ef91c 100644 --- a/platform/cooja/node-id.h +++ b/platform/cooja/node-id.h @@ -26,17 +26,8 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * This file is part of the Configurable Sensor Network Application - * Architecture for sensor nodes running the Contiki operating system. - * - * $Id: node-id.h,v 1.1 2006/08/21 12:11:16 fros4943 Exp $ - * - * ----------------------------------------------------------------- - * - * Author : Adam Dunkels, Joakim Eriksson, Niclas Finne - * Created : 2005-12-09 - * Updated : $Date: 2006/08/21 12:11:16 $ - * $Revision: 1.1 $ + * $Id: node-id.h,v 1.2 2007/11/25 22:48:35 fros4943 Exp $ + * */ #ifndef __NODE_ID_H__ diff --git a/platform/cooja/printf2log.h b/platform/cooja/printf2log.h index 92a8a658a..451c4ec42 100644 --- a/platform/cooja/printf2log.h +++ b/platform/cooja/printf2log.h @@ -29,7 +29,7 @@ * This file is part of the Configurable Sensor Network Application * Architecture for sensor nodes running the Contiki operating system. * - * $Id: printf2log.h,v 1.1 2007/08/23 08:14:30 fros4943 Exp $ + * $Id: printf2log.h,v 1.2 2007/11/25 22:48:35 fros4943 Exp $ * */ @@ -38,6 +38,16 @@ #include "sys/log.h" -#define printf(...) { char printf2log_buf[200]; sprintf(printf2log_buf, __VA_ARGS__); log_message(printf2log_buf, ""); } +void simlog(const char *message); + +#define MAX_SIZE 256 + +#define printf(...) \ + { \ + char printf2log_buf[MAX_SIZE]; \ + int c = sprintf(printf2log_buf, __VA_ARGS__); \ + printf2log_buf[c] = 0; \ + simlog(printf2log_buf); \ + } #endif /* __PRINTF2LOG_H__ */ diff --git a/platform/cooja/rtimer-arch.c b/platform/cooja/rtimer-arch.c index 1e47fa15b..0451e86da 100644 --- a/platform/cooja/rtimer-arch.c +++ b/platform/cooja/rtimer-arch.c @@ -28,14 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: rtimer-arch.c,v 1.1 2007/04/11 12:46:13 fros4943 Exp $ - */ - -/** - * \file - * Native (non-specific) code for the Contiki real-time module rt - * \author - * Adam Dunkels + * $Id: rtimer-arch.c,v 1.2 2007/11/25 22:48:35 fros4943 Exp $ */ #include