From ce36b4a05e275dcc12e74e96ddae99c21faad466 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 26 Aug 2015 12:01:51 +0200 Subject: reset-source: Add some debugging aids Signed-off-by: Sascha Hauer --- common/reset_source.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/reset_source.c') diff --git a/common/reset_source.c b/common/reset_source.c index b02a694f9d..0a69f90a6e 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 #include @@ -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); -- cgit v1.2.3