[ 75s] /home/abuild/rpmbuild/BUILD/stc-manager-0.1.2/unittest/firewall.cpp: In member function 'error_e Firewall::GetLock(int*)':
[ 75s] /usr/include/dlog/dlog-internal.h:72:31: error: format '%d' expects argument of type 'int', but argument 8 has type 'int*' [-Werror=format=]
[ 75s] 72 | __dlog_print(id, prio, tag, "%s: %s(%d) > " fmt, __MODULE__, __func__, __LINE__, ##__VA_ARGS__); \
[ 75s] /usr/include/dlog/dlog-internal.h:166:27: note: in expansion of macro 'LOG_'
[ 75s] 166 | #define LOGD(format, ...) LOG_(LOG_ID_MAIN, DLOG_DEBUG, LOG_TAG, format, ##__VA_ARGS__)
[ 75s] | ^~~~
[ 75s] /home/abuild/rpmbuild/BUILD/stc-manager-0.1.2/unittest/stcmgr.h:30:32: note: in expansion of macro 'LOGD'
[ 75s] 30 | #define GLOGD(format, args...) LOGD(format, ##args)
[ 75s] | ^~~~
[ 75s] /home/abuild/rpmbuild/BUILD/stc-manager-0.1.2/unittest/firewall.cpp:484:2: note: in expansion of macro 'GLOGD'
[ 75s] 484 | GLOGD("Succeeded to get lock state[%d]", state);
[ 75s] | ^~~~~
[ 75s] /home/abuild/rpmbuild/BUILD/stc-manager-0.1.2/unittest/firewall.cpp:484:38: note: format string is defined here
[ 75s] 484 | GLOGD("Succeeded to get lock state[%d]", state);
[ 75s] | ~^
[ 75s] | |
[ 75s] | int
[ 75s] | %n
[ 78s] /home/abuild/rpmbuild/BUILD/stc-manager-0.1.2/unittest/statistics.cpp: In member function 'error_e Statistics::ResetStatistics()':
[ 78s] /usr/include/dlog/dlog-internal.h:72:31: error: too many arguments for format [-Werror=format-extra-args]
[ 78s] 72 | __dlog_print(id, prio, tag, "%s: %s(%d) > " fmt, __MODULE__, __func__, __LINE__, ##__VA_ARGS__); \
[ 78s] /usr/include/dlog/dlog-internal.h:166:27: note: in expansion of macro 'LOG_'
[ 78s] 166 | #define LOGD(format, ...) LOG_(LOG_ID_MAIN, DLOG_DEBUG, LOG_TAG, format, ##__VA_ARGS__)
[ 78s] | ^~~~
[ 78s] /home/abuild/rpmbuild/BUILD/stc-manager-0.1.2/unittest/stcmgr.h:30:32: note: in expansion of macro 'LOGD'
[ 78s] 30 | #define GLOGD(format, args...) LOGD(format, ##args)
[ 78s] | ^~~~
[ 78s] /home/abuild/rpmbuild/BUILD/stc-manager-0.1.2/unittest/statistics.cpp:292:2: note: in expansion of macro 'GLOGD'
[ 78s] 292 | GLOGD("Succeeded to reset statistics", result);
[ 78s] | ^~~~~
Change-Id: I5a23d18e3e8b3d510cacac834506ec22fa2bd193
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Name: stc-manager
Summary: STC(Smart Traffic Control) manager
-Version: 0.1.2
+Version: 0.1.3
Release: 0
Group: Network & Connectivity/Other
License: Apache-2.0
return error;
}
- g_variant_get(message, "(i)", &state);
- GLOGD("Succeeded to get lock state[%d]", state);
+ g_variant_get(message, "(i)", state);
+ GLOGD("Succeeded to get lock state[%d]", *state);
g_variant_unref(message);
return ERROR_NONE;
}
g_variant_get(message, "(i)", &result);
- GLOGD("Succeeded to reset statistics", result);
+ GLOGD("Succeeded to reset statistics [%d]", result);
g_variant_unref(message);
return ERROR_NONE;