util: Improve os_mem_prealloc error message
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 16 Oct 2014 13:13:32 +0000 (15:13 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 2 Nov 2014 07:04:34 +0000 (10:04 +0300)
commit404ac83efd5761c6b590fd9f00fbbe8ee2281aa6
tree1ea183506c0764e331731e3ec31d7d93eead18ea
parent2944d742f73d78120151fbc62b53f2ab79be89aa
util: Improve os_mem_prealloc error message

Currently, when the preallocating guest memory process fails, a not
so helpful error message is printed out:

    # virsh start migt10
    error: Failed to start domain migt10
    error: internal error: process exited while connecting to monitor:
    os_mem_prealloc: failed to preallocate pages

From the error message it's not clear at the first glance where the
problem lies. However, changing the error message might give users a
clue.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
util/oslib-posix.c