Browse Source

rad_dict.h: logging: convert LOG to LM_*

Ovidiu Sas 11 năm trước cách đây
mục cha
commit
a539b5612a
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      rad_dict.h

+ 4 - 4
rad_dict.h

@@ -147,8 +147,8 @@ typedef enum rad_val {
 			continue;					\
 		da = rc_dict_findattr(rh, at[i].n);			\
 		if (da == NULL) {					\
-			LOG(L_ERR, "ERROR: %s: can't get code for the "	\
-				   "%s attribute\n", fn, at[i].n);	\
+			LM_ERR("%s: can't get code for %s attr\n",	\
+					fn, at[i].n);			\
 			return e1;					\
 		}							\
 		at[i].v = da->value;					\
@@ -158,8 +158,8 @@ typedef enum rad_val {
 			continue;					\
 		dv = rc_dict_findval(rh, vl[i].n);			\
 		if (dv == NULL) {					\
-			LOG(L_ERR, "ERROR: %s: can't get code for the "	\
-				   "%s attribute value\n", fn, vl[i].n);\
+			LM_ERR("%s: can't get code for %s attr value\n",\
+					fn, vl[i].n);			\
 			return e2;					\
 		}							\
 		vl[i].v = dv->value;					\