Skip to content
Snippets Groups Projects
Commit a9e77ef1 authored by Andrew Cooks's avatar Andrew Cooks
Browse files

replace custom logging macros with standard ones

replace DBG(...) with pr_debug(...)
replace MSG(...) with pr_info(...)
replace ERR(...) with pr_err(...)
and
remove unused DBG, MSG, ERR macros
parent b9c92bdf
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,21 @@ sed -i 's|\r| |g' *.c *.h
# rename DRB_OBJS to DRV_OBJS as in 0.3.16.15
sed -i 's|DRB_OBJS|DRV_OBJS|g' Makefile
# replace DBG(...) macro with pr_debug(...)
sed -i 's|\(\s\+\)\(DBG(\)|\1pr_debug(|g' *.c
sed -i 's|#define\(.*\)DBG$|#define\1pr_debug|g' *.c *.h
# remove unused DBG macro
sed -i 's|^\(#define\s\+DBG(.*\)||g' tn40.h
# replace MSG(...) macro with pr_info(...)
sed -i 's|\(\s\+\)\(MSG(\)|\1pr_info(|g' *.c
# remove unused MSG macro
sed -i 's|\(#define\s\+MSG(.*\)||g' tn40.h
# remove unused ERR macro
sed -i 's|\(#define\s\+ERR(.*\)||g' tn40.h
# replace ERR(...) macro with pr_err(...)
sed -i 's|\(\s\+\)\(ERR(\)|\1pr_err(|g' *.c *.h
# Insert new cleanup steps above this comment.
# Keep Lindent as the last step.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment