sbin/mount_hammer: Fix error messages
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 2 Aug 2015 05:38:37 +0000 (14:38 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 2 Aug 2015 07:25:24 +0000 (16:25 +0900)
commit331432f3a33b9b0ebca19311006c9e02615d1240
treea105b348c3d0d8b92f32e2f1cfd89b296b90397f
parent96c170df2bc8a81f46f726e2c432cb12020c8700
sbin/mount_hammer: Fix error messages

It's possible that open(2) and signature check do not fail
but mount(2) still fails possibly because of fs's bug.
When that happens (it actually did happen right now) fdevs
remains with no valid string strcatted. Add an error message
for such case.

Also change printf(); to fprintf(stderr);.
sbin/mount_hammer/mount_hammer.c