Author: mmel
Date: Tue Jan 30 04:06:30 2018
New Revision: 328586
URL: https://svnweb.freebsd.org/changeset/base/328586

Log:
  Use more verbose panic messages.
  
  MFC after: 2 weeks

Modified:
  head/sys/dev/extres/clk/clk.c

Modified: head/sys/dev/extres/clk/clk.c
==============================================================================
--- head/sys/dev/extres/clk/clk.c       Tue Jan 30 04:05:03 2018        
(r328585)
+++ head/sys/dev/extres/clk/clk.c       Tue Jan 30 04:06:30 2018        
(r328586)
@@ -642,10 +642,11 @@ clknode_adjust_parent(struct clknode *clknode, int idx
        if (clknode->parent_cnt == 0)
                return;
        if ((idx == CLKNODE_IDX_NONE) || (idx >= clknode->parent_cnt))
-               panic("Invalid clock parent index\n");
+               panic("%s: Invalid parent index %d for clock %s",
+                   __func__, idx, clknode->name);
 
        if (clknode->parents[idx] == NULL)
-               panic("%s: Attempt to set invalid parent %d for clock %s",
+               panic("%s: Invalid parent index %d for clock %s",
                    __func__, idx, clknode->name);
 
        /* Remove me from old children list. */
@@ -674,8 +675,8 @@ clknode_init_parent_idx(struct clknode *clknode, int i
        if ((idx == CLKNODE_IDX_NONE) ||
            (idx >= clknode->parent_cnt) ||
            (clknode->parent_names[idx] == NULL))
-               panic("%s: Invalid clock parent index: %d\n", __func__, idx);
-
+               panic("%s: Invalid parent index %d for clock %s",
+                   __func__, idx, clknode->name);
        clknode->parent_idx = idx;
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to