daemon: Update debug print with more clear information
authorSam Nelson <sam.nelson@ti.com>
Mon, 30 Jul 2018 20:34:35 +0000 (16:34 -0400)
committerSam Nelson <sam.nelson@ti.com>
Thu, 9 Aug 2018 20:01:32 +0000 (16:01 -0400)
Helps to debug if the AF_RPMSG is not the expected value

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
linux/src/daemon/NameServer_daemon.c

index 882905caa7db9fc7bda32b8350a604038d20e8a1..90d8cd19b33502702d7e24629bfd9374926f910e 100644 (file)
@@ -1425,8 +1425,8 @@ Int NameServer_attach(UInt16 procId)
     sock = socket(AF_RPMSG, SOCK_SEQPACKET, 0);
     if (sock < 0) {
         status = NameServer_E_FAIL;
-        LOG2("NameServer_attach: socket failed: %d, %s\n", errno,
-                strerror(errno));
+        LOG3("NameServer_attach: socket failed: Domain %d, Error no %d, Error string:%s\n",
+             AF_RPMSG, errno, strerror(errno));
         goto done;
     }
     NameServer_module->comm[clId].sendSock = sock;