Merge "[qca-ssdk]: change log info of qca-ssdk as qca-psdk when use psdk."
diff --git a/src/init/ssdk_init.c b/src/init/ssdk_init.c
index 1d1a8c4..4c08c0c 100755
--- a/src/init/ssdk_init.c
+++ b/src/init/ssdk_init.c
@@ -3239,6 +3239,9 @@
return rev;
}
+#ifndef SSDK_STR
+#define SSDK_STR "ssdk"
+#endif
static int __init regi_init(void)
{
a_uint32_t num = 0, dev_id = 0, dev_num = 1;
@@ -3356,13 +3359,13 @@
out:
if (rv == 0)
- SSDK_INFO("qca-ssdk module init succeeded!\n");
+ SSDK_INFO("qca-%s module init succeeded!\n", SSDK_STR);
else {
if (rv == -ENODEV) {
rv = 0;
- SSDK_INFO("qca-ssdk module init, no device found!\n");
+ SSDK_INFO("qca-%s module init, no device found!\n", SSDK_STR);
} else {
- SSDK_INFO("qca-ssdk module init failed! (code: %d)\n", rv);
+ SSDK_INFO("qca-%s module init failed! (code: %d)\n", SSDK_STR, rv);
ssdk_free_priv();
}
}
@@ -3388,9 +3391,9 @@
rv = ssdk_cleanup();
if (rv == 0)
- SSDK_INFO("qca-ssdk module exit done!\n");
+ SSDK_INFO("qca-%s module exit done!\n", SSDK_STR);
else
- SSDK_ERROR("qca-ssdk module exit failed! (code: %d)\n", rv);
+ SSDK_ERROR("qca-%s module exit failed! (code: %d)\n", SSDK_STR, rv);
/*qca808x_end*/
#ifdef DESS