devmapper: fixup error formatting

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2017-01-09 16:58:09 +01:00
parent d4791c7b64
commit 8bcbc6711f
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9

View file

@ -151,7 +151,7 @@ func (d *Driver) Remove(id string) error {
// This assumes the device has been properly Get/Put:ed and thus is unmounted
if err := d.DeviceSet.DeleteDevice(id, false); err != nil {
return fmt.Errorf("failed to remove device %v:%v", id, err)
return fmt.Errorf("failed to remove device %s: %v", id, err)
}
mp := path.Join(d.home, "mnt", id)