git: sbin/mount_hammer: Fix error messages

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Aug 2 00:34:29 PDT 2015


commit 331432f3a33b9b0ebca19311006c9e02615d1240
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Aug 2 14:38:37 2015 +0900

    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);.

Summary of changes:
 sbin/mount_hammer/mount_hammer.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/331432f3a33b9b0ebca19311006c9e02615d1240


-- 
DragonFly BSD source repository



More information about the Commits mailing list