ACC Utilities Reference Guide

ZMLOG - Diagnostic Message Logging
ZCOM Diagnostic Message Logging Mechanism
Chapter 6162
#define ZCOM_AT_STR 4 /* string */
#define ZCOM_AT_ERRNO 5 /* file system error */
#define ZCOM_AT_ZERROR 6 /* ZCOM error */
#define ZCOM_AT_ZERR2 7 /* ZCOM error (short int) */
#define ZCOM_AT_ZSTAT 8 /* ZCOM status */
#define ZCOM_AT_XSTAT 9 /* X25 status */
#define ZCOM_AT_FMPERROR 10 /* FMP error */
#define ZCOM_AT_UCHAR 11 /* unsigned char */
#define ZCOM_AT_USINT 12 /* unsigned short int */
#define ZCOM_AT_INT64 13 /* 64-bit int */
#define ZCOM_AT_UINT64 14 /* 64-bit unsigned int */
The available general argument Macros for parameter fill-in assistance
are:
#define Zc_CHAR(x) ZCOM_AT_CHAR, (char)(x)
#define Zc_SINT(x) ZCOM_AT_SINT, (short)(x)
#define Zc_INT(x) ZCOM_AT_INT, (int)(x)
#define Zc_STR(x) ZCOM_AT_STR, (x)
#define Zc_ERRNO(x) ZCOM_AT_ERRNO, (x)
#define Zc_ZERROR(x) ZCOM_AT_ZERROR, (x)
#define Zc_ZERR2(x) ZCOM_AT_ZERR2, (x)
#define Zc_ZSTAT(x,y) ZCOM_AT_ZSTAT, (((x)<<16)+y)
#define Zc_XSTAT(x,y) ZCOM_AT_XSTAT, (((x)<<16)+y)
#define Zc_FMPERROR(x) ZCOM_AT_FMPERROR, (x)
#define Zc_UCHAR(x) ZCOM_AT_UCHAR, (uint8)(x)
#define Zc_USINT(x) ZCOM_AT_USINT, (u_short)(x)
#define Zc_UINT(x) ZCOM_AT_INT, (u_int)(x)
#define Zc_INT64(x) ZCOM_AT_INT64, (int64)(x)
#define Zc_UINT64(x) ZCOM_AT_UINT64, (uint64)(x)
#define Zc_INT32(x) Zc_INT(x)
#define Zc_UINT32(x) Zc_UINT(x)
#define Zc_INT16(x) Zc_SINT(x)
#define Zc_UINT16(x) Zc_USINT(x)
#define Zc_INT8(x) Zc_CHAR(x)
#define Zc_UINT8(x) Zc_UCHAR(x)
Example of usage:
zcomlog (error_number, message_number, numb_vars, Zc_INT(var_value));
/* Note : INT(argument_value_1) is expanded into 2 */
/* arguments,namely : ZCOM_AT_INT, var_value */