summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-08-26 12:01:51 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-08-28 08:35:51 +0200
commitce36b4a05e275dcc12e74e96ddae99c21faad466 (patch)
tree7d214ba7e745f0a29dfc4fdf0a9b73e94134ef68 /common
parent87af8d8dd44c7a3fac2b36298b698a1766ba655e (diff)
downloadbarebox-ce36b4a05e275dcc12e74e96ddae99c21faad466.tar.gz
reset-source: Add some debugging aids
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/reset_source.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/reset_source.c b/common/reset_source.c
index b02a694..0a69f90 100644
--- a/common/reset_source.c
+++ b/common/reset_source.c
@@ -11,6 +11,7 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
+#define pr_fmt(fmt) "reset-source: " fmt
#include <common.h>
#include <init.h>
@@ -45,6 +46,9 @@ void reset_source_set_priority(enum reset_src_type st, unsigned int priority)
reset_source = st;
reset_source_priority = priority;
+
+ pr_debug("Setting reset source to %s with priority %d\n",
+ reset_src_names[reset_source], priority);
}
EXPORT_SYMBOL(reset_source_set);