summaryrefslogtreecommitdiff
path: root/nuttx/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/drivers')
-rw-r--r--nuttx/drivers/watchdog.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/drivers/watchdog.c b/nuttx/drivers/watchdog.c
index 2f2f22ce6..d7ee30365 100644
--- a/nuttx/drivers/watchdog.c
+++ b/nuttx/drivers/watchdog.c
@@ -478,6 +478,7 @@ FAR void *watchdog_register(FAR const char *path,
int ret;
DEBUGASSERT(path && lower);
+ wdvdbg("Registering: %s\n", path);
/* Allocate the upper-half data structure */
@@ -548,14 +549,14 @@ void watchdog_unregister(FAR void *handle)
FAR struct watchdog_upperhalf_s *upper;
FAR struct watchdog_lowerhalf_s *lower;
- wdvdbg("cmd: %d arg: %ld\n", cmd, arg);
-
/* Recover the pointer to the upper-half driver state */
upper = (FAR struct watchdog_upperhalf_s *)handle;
lower = upper->lower;
DEBUGASSERT(upper && lower);
+ wdvdbg("Unregistering: %s\n", upper->path);
+
/* Disable the watchdog timer */
DEBUGASSERT(lower->ops->stop); /* Required */