]> git.baikalelectronics.ru Git - kernel.git/commit
init/do_mounts.c: print error code on mount failure
authorBernhard Walle <bernhard@bwalle.de>
Fri, 23 Mar 2012 22:02:28 +0000 (15:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 23 Mar 2012 23:58:38 +0000 (16:58 -0700)
commit5238823c849ba7afcb43f9d8d8fcbd0158298d83
treecf58a9566e7fb6597d798b716b4b324950f23b30
parentec230a3d0199c219f2fe1a16816422b4b799db9e
init/do_mounts.c: print error code on mount failure

Printing the error code makes it easier to debug the cause of a mount
failure.  For example I had the problem that the root file system could
not be mounted read-writeable because my SD card was write-protected.
Without an error code it looks like the SD card was not detected at all.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/do_mounts.c