aboutsummaryrefslogtreecommitdiff
path: root/fs/jffs2/debug.h
AgeCommit message (Collapse)AuthorFilesLines
2020-12-13jffs2: Fix if/else empty body warningsRandy Dunlap1-11/+12
When debug (print) macros are not enabled, change them to use the no_printk() macro instead of <nothing>. This fixes gcc warnings when -Wextra is used: ../fs/jffs2/nodelist.c:255:37: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] ../fs/jffs2/nodelist.c:278:38: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] ../fs/jffs2/nodelist.c:558:52: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] ../fs/jffs2/xattr.c:1247:58: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] ../fs/jffs2/xattr.c:1281:65: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] Builds without warnings on all 3 levels of CONFIG_JFFS2_FS_DEBUG. Signed-off-by: Randy Dunlap <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Richard Weinberger <[email protected]> Cc: [email protected] Signed-off-by: Richard Weinberger <[email protected]>
2012-03-27jffs2: Standardize JFFS_<LEVEL> usesJoe Perches1-33/+10
Use pr_<level> to prefix KBUILD_MODNAME via pr_fmt. Remove obfuscating defines and use constants in pr_<level> No need for a do {} while (0) for single statements. Form of JFFS_<LEVEL> output changes from "JFFS2 notice: " to "jffs2: notice: " Added pr_fmt to xattr.c Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
2012-03-27jffs2: Convert most D1/D2 macros to jffs2_dbgJoe Perches1-0/+7
D1 and D2 macros are mostly uses to emit debugging messages. Convert the logging uses of D1 & D2 to jffs2_dbg(level, fmt, ...) to be a bit more consistent style with the rest of the kernel. All jffs2_dbg output is now at KERN_DEBUG where some of the previous uses were emitted at various KERN_<LEVEL>s. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
2010-08-08jffs2: Update copyright noticesDavid Woodhouse1-0/+1
Signed-off-by: David Woodhouse <[email protected]>
2008-04-30fs: replace remaining __FUNCTION__ occurrencesHarvey Harrison1-4/+4
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-04-23[JFFS2] Introduce dbg_readinode2 log level, use it to shut read_dnode() upDavid Woodhouse1-0/+6
We haven't seen bugs in this for a while now, since the rewrite. No need to be _quite_ so verbose... Signed-off-by: David Woodhouse <[email protected]>
2007-10-19Use helpers to obtain task pid in printksPavel Emelyanov1-4/+4
The task_struct->pid member is going to be deprecated, so start using the helpers (task_pid_nr/task_pid_vnr/task_pid_nr_ns) in the kernel. The first thing to start with is the pid, printed to dmesg - in this case we may safely use task_pid_nr(). Besides, printks produce more (much more) than a half of all the explicit pid usage. [[email protected]: git-drm went and changed lots of stuff] Signed-off-by: Pavel Emelyanov <[email protected]> Cc: Dave Airlie <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-04-25[JFFS2] Tidy up licensing/copyright boilerplate.David Woodhouse1-3/+2
In particular, remove the bit in the LICENCE file about contacting Red Hat for alternative arrangements. Their errant IS department broke that arrangement a long time ago -- the policy of collecting copyright assignments from contributors came to an end when the plug was pulled on the servers hosting the project, without notice or reason. We do still dual-license it for use with eCos, with the GPL+exception licence approved by the FSF as being GPL-compatible. It's just that nobody has the right to license it differently. Signed-off-by: David Woodhouse <[email protected]>
2007-01-13[JFFS2] debug.h: include <linux/sched.h> for current->pidDavid Woodhouse1-0/+1
Signed-off-by: David Woodhouse <[email protected]>
2006-06-30Remove obsolete #include <linux/config.h>Jörn Engel1-1/+0
Signed-off-by: Jörn Engel <[email protected]> Signed-off-by: Adrian Bunk <[email protected]>
2006-05-13[JFFS2][XATTR] XATTR support on JFFS2 (version. 5)KaiGai Kohei1-0/+6
This attached patches provide xattr support including POSIX-ACL and SELinux support on JFFS2 (version.5). There are some significant differences from previous version posted at last December. The biggest change is addition of EBS(Erase Block Summary) support. Currently, both kernel and usermode utility (sumtool) can recognize xattr nodes which have JFFS2_NODETYPE_XATTR/_XREF nodetype. In addition, some bugs are fixed. - A potential race condition was fixed. - Unexpected fail when updating a xattr by same name/value pair was fixed. - A bug when removing xattr name/value pair was fixed. The fundamental structures (such as using two new nodetypes and exclusion mechanism by rwsem) are unchanged. But most of implementation were reviewed and updated if necessary. Espacially, we had to change several internal implementations related to load_xattr_datum() to avoid a potential race condition. [1/2] xattr_on_jffs2.kernel.version-5.patch [2/2] xattr_on_jffs2.utils.version-5.patch Signed-off-by: KaiGai Kohei <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
2005-11-23[PATCH] jffs2 debug gcc-2.9x fixAndrew Morton1-4/+4
Work around gcc-2.95.x macro expansion bug. Cc: David Woodhouse <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2005-11-07[JFFS2] Clean up trailing white spacesThomas Gleixner1-5/+5
Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[JFFS2] Fix broken compile when debug level = 2Artem B. Bityutskiy1-3/+3
Signed-off-by: Artem B. Bityutskiy <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[JFFS2] Debug code simplification, update TODOArtem B. Bityutskiy1-18/+32
Simplify the debugging code further. Update the TODO list Signed-off-by: Artem B. Bityutskiy <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[JFFS2] Debug message format clean upArtem B. Bityutskiy1-13/+18
Signed-off-by: Artem B. Bityutskiy <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[JFFS2] Add erase block summary support (mount time improvement)Ferenc Havasi1-1/+9
The goal of summary is to speed up the mount time. Erase block summary (EBS) stores summary information at the end of every (closed) erase block. It is no longer necessary to scan all nodes separetly (and read all pages of them) just read this "small" summary, where every information is stored which is needed at mount time. This summary information is stored in a JFFS2_FEATURE_RWCOMPAT_DELETE. During the mount process if there is no summary info the orignal scan process will be executed. EBS works with NAND and NOR flashes, too. There is a user space tool called sumtool to generate this summary information for a JFFS2 image. Signed-off-by: Ferenc Havasi <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[JFFS2] More message formatting cleanupsArtem B. Bityutskiy1-5/+5
Signed-off-by: Artem B. Bityutskiy <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[JFFS2] Make the JFFS2 messages a bit nicerArtem B. Bityutskiy1-5/+5
Signed-off-by: Artem B. Bityutskiy <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[JFFS2] Debug code clean up - step 7Artem B. Bityutskiy1-53/+29
Remove more noisy debugs. Add current->pid to debug messages. Remove bogus includes. Signed-off-by: Artem B. Bityutskiy <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[JFFS2] Debug code clean up - step 6Artem B. Bityutskiy1-1/+1
Remove extra noisy debugs Signed-off-by: Artem B. Bityutskiy <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[JFFS2] Refine fragtree debug macrosArtem B. Bityutskiy1-6/+6
Signed-off-by: Artem B. Bityutskiy <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[JFFS2] Debug code clean up - step 4Artem B. Bityutskiy1-4/+12
Small comment cleanups. Remove a unused macro Signed-off-by: Artem B. Bityutskiy <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[JFFS2] Namespace clean upArtem B. Bityutskiy1-20/+1
Rename functions to a name matching the functionality. Remove stall debug code Signed-off-by: Artem B. Bityutskiy <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[JFFS2] Debug code clean up - step 3Artem B. Bityutskiy1-34/+217
Various simplifiactions. printk format corrections. Convert more code to use the new debug functions. Signed-off-by: Artem B. Bityutskiy <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
2005-11-06[JFFS2] Debug code clean up - step 1Artem B. Bityutskiy1-0/+104
Move debug functions into a seperate source file Signed-off-by: Artem B. Bityutskiy <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>