Add __dlog_sec_print() to keep backward compatibility with existing MCD in-house... 45/217045/1 accepted/tizen/5.5/unified/20191107.051304 submit/tizen_5.5/20191106.015838
authorHyotaek Shim <hyotaek.shim@samsung.com>
Tue, 5 Nov 2019 09:47:21 +0000 (18:47 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 6 Nov 2019 01:53:04 +0000 (01:53 +0000)
commit842a0206ea6e7463ff00642a07acd4e4d9417e63
treec7d8eb5623584721ce11cb083980d39b810f2170
parent8d2dd5324b3ca3940b90e72c054db99660ea83fe
Add __dlog_sec_print() to keep backward compatibility with existing MCD in-house Apps

.#define SECURE_LOG_(id, prio, tag, fmt, arg...) \
({ do { \
      __dlog_sec_print(id, prio, tag, "%s: %s(%d) > [SECURE_LOG] " fmt, __MODULE__, __func__, __LINE__, ##arg); \
} while (0); })

root@localhost:/usr/apps/com.samsung.w-manager-service/bin# ./w-manager-service
appcore: Failed to get application ID - pid(3962)
./w-manager-service: symbol lookup error: ./w-manager-service: undefined symbol: __dlog_sec_print

root@HyotaekShim:/platform/AppStoreWhitelist/20191106# grep -r __dlog_sec_print
000001044261_com.samsung.w-dialer2_100015.txt:__dlog_sec_print
000004264895_com.samsung.tizen.bixby-voice_210200007.txt:__dlog_sec_print
000001913406_com.samsung.w-spotify_300002.txt:__dlog_sec_print
000001902170_com.samsung.w-spotify_300001.txt:__dlog_sec_print
000002736570_com.samsung.w-manager-service_500300013.txt:__dlog_sec_print
000002420102_com.samsung.samsung-pay-app_100400303.txt:__dlog_sec_print
000001915993_com.samsung.w-spotify_300002.txt:__dlog_sec_print
000002750274_com.samsung.w-logs2_100300011.txt:__dlog_sec_print
000002738273_com.samsung.w-contacts2_100200074.txt:__dlog_sec_print
...

Change-Id: Ieda4e759213ab50810540574d98f72bb0491c6c9
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
(cherry picked from commit e79a3426c5ef1a69bf24cb20d3df2a6d8d6174ad)
(cherry picked from commit 6ca4f6a8f0a054e9770f3a2c43705475483158f0)
include/dlog-internal.h
src/libdlog/log.c