drivers/net/phy_notify.c: Use phy debug macros instead of net debug macros. ninfo() and nerr() are used a bit too much, so the console output is difficult to read with network debug.

This commit is contained in:
Sebastien Lorquet 2018-03-09 07:11:07 -06:00 committed by Gregory Nutt
parent 82baae5101
commit ed50b14cee

View File

@ -193,7 +193,7 @@ static FAR struct phy_notify_s *phy_find_unassigned(void)
/* Ooops... too many */ /* Ooops... too many */
nerr("ERROR: No free client entries\n"); phyerr("ERROR: No free client entries\n");
phy_semgive(); phy_semgive();
return NULL; return NULL;
} }
@ -259,7 +259,7 @@ static int phy_handler(int irq, FAR void *context, FAR void *arg)
if (ret < 0) if (ret < 0)
{ {
nerr("ERROR: nxsig_queue failed: %d\n", ret); phyerr("ERROR: nxsig_queue failed: %d\n", ret);
} }
return OK; return OK;
@ -303,7 +303,7 @@ int phy_notify_subscribe(FAR const char *intf, pid_t pid, int signo,
DEBUGASSERT(intf); DEBUGASSERT(intf);
ninfo("%s: PID=%d signo=%d arg=%p\n", intf, pid, signo, arg); phyinfo("%s: PID=%d signo=%d arg=%p\n", intf, pid, signo, arg);
/* The special value pid == 0 means to use the pid of the current task. */ /* The special value pid == 0 means to use the pid of the current task. */
@ -330,7 +330,7 @@ int phy_notify_subscribe(FAR const char *intf, pid_t pid, int signo,
client = phy_find_unassigned(); client = phy_find_unassigned();
if (!client) if (!client)
{ {
nerr("ERROR: Failed to allocate a client entry\n"); phyerr("ERROR: Failed to allocate a client entry\n");
return -ENOMEM; return -ENOMEM;
} }
@ -380,14 +380,14 @@ int phy_notify_unsubscribe(FAR const char *intf, pid_t pid)
{ {
FAR struct phy_notify_s *client; FAR struct phy_notify_s *client;
ninfo("%s: PID=%d\n", intf, pid); phyinfo("%s: PID=%d\n", intf, pid);
/* Find the client entry for this interface */ /* Find the client entry for this interface */
client = phy_find_assigned(intf, pid); client = phy_find_assigned(intf, pid);
if (!client) if (!client)
{ {
nerr("ERROR: No such client\n"); phyerr("ERROR: No such client\n");
return -ENOENT; return -ENOENT;
} }