The current TAG doesn't have a rule.
i have modified TAG in RI Layer to make easy debugging.
it is better to add common string 'OIC_' + current TAG name.
Change-Id: I722c1944e9ba89d901d93d6ba208e931c9094028
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/4839
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
#include "cainterface.h"
/// Module Name
-#define TAG "occlientcb"
+#define TAG "OIC_RI_CLIENTCB"
struct ClientCB *cbList = NULL;
static OCMulticastNode * mcPresenceNodes = NULL;
#include "oicgroup.h"
-#define TAG "occollection"
+#define TAG "OIC_RI_COLLECTION"
#define NUM_PARAM_IN_QUERY 2 // The expected number of parameters in a query
#define NUM_FIELDS_IN_QUERY 2 // The expected number of fields in a query
// Module Name
#define MOD_NAME "ocobserve"
-#define TAG "OCStackObserve"
+#define TAG "OIC_RI_OBSERVE"
#define VERIFY_NON_NULL(arg) { if (!arg) {OC_LOG(FATAL, TAG, #arg " is NULL"); goto exit;} }
#include "logger.h"
#include "rdpayload.h"
-#define TAG "OCPayload"
+#define TAG "OIC_RI_PAYLOAD"
+
static void OCFreeRepPayloadValueContents(OCRepPayloadValue* val);
static void FreeOCDiscoveryResource(OCResourcePayload* payload);
#include "cbor.h"
#include "rdpayload.h"
-#define TAG "OCPayloadConvert"
+#define TAG "OIC_RI_PAYLOADCONVERT"
+
// Arbitrarily chosen size that seems to contain the majority of packages
#define INIT_SIZE (255)
#include "payload_logging.h"
#include "rdpayload.h"
-#define TAG "OCPayloadParse"
+#define TAG "OIC_RI_PAYLOADPARSE"
static OCStackResult OCParseDiscoveryPayload(OCPayload** outPayload, CborValue* arrayVal);
static OCStackResult OCParseDevicePayload(OCPayload** outPayload, CborValue* arrayVal);
#endif
/// Module Name
-#define TAG "ocresource"
+#define TAG "OIC_RI_RESOURCE"
+
#define VERIFY_SUCCESS(op, successCode) { if (op != successCode) \
{OC_LOG_V(FATAL, TAG, "%s failed!!", #op); goto exit;} }
// Module Name
#define VERIFY_NON_NULL(arg) { if (!arg) {OC_LOG(FATAL, TAG, #arg " is NULL"); goto exit;} }
-#define TAG "ocserverrequest"
+#define TAG "OIC_RI_SERVERREQUEST"
static struct OCServerRequest * serverRequestList = NULL;
static struct OCServerResponse * serverResponseList = NULL;
//-----------------------------------------------------------------------------
// Macros
//-----------------------------------------------------------------------------
-#define TAG "OCStack"
+#define TAG "OIC_RI_STACK"
#define VERIFY_SUCCESS(op, successCode) { if ((op) != (successCode)) \
{OC_LOG_V(FATAL, TAG, "%s failed!!", #op); goto exit;} }
#define VERIFY_NON_NULL(arg, logLevel, retVal) { if (!(arg)) { OC_LOG((logLevel), \
#include <pthread.h>
#endif
-#define TAG "OICGROUP"
+#define TAG "OIC_RI_GROUP"
#define DESC_DELIMITER "\""
#define ACTION_DELIMITER "*"
#include "ocpayload.h"
#include "payload_logging.h"
-#define TAG "OCRDPayload"
+#define TAG "OIC_RI_RDPAYLOAD"
#define CBOR_ROOT_ARRAY_LENGTH 1