diff options
author | Mitchel Humpherys <mitchelh@codeaurora.org> | 2015-02-13 18:05:34 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-20 13:44:39 +0100 |
commit | d9954896a286393522a851731c46caba1f7bca19 (patch) | |
tree | f11c3ceed51a2eda917ec8c99c9df000385d12f7 /drivers/staging/android | |
parent | d38f486142b6edf3dfd3407d8f0e8a55309a9e41 (diff) | |
download | op-kernel-dev-d9954896a286393522a851731c46caba1f7bca19.zip op-kernel-dev-d9954896a286393522a851731c46caba1f7bca19.tar.gz |
ion: improve ion_phys error message
Clients often get confused when ion_phys errors out due to some heap
being used that they didn't expect. Add the heap name and heap type to
the error message to make it more obvious.
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android')
-rw-r--r-- | drivers/staging/android/ion/ion.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 65361ca..0e3d8c7 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -566,8 +566,8 @@ int ion_phys(struct ion_client *client, struct ion_handle *handle, buffer = handle->buffer; if (!buffer->heap->ops->phys) { - pr_err("%s: ion_phys is not implemented by this heap.\n", - __func__); + pr_err("%s: ion_phys is not implemented by this heap (name=%s, type=%d).\n", + __func__, buffer->heap->name, buffer->heap->type); mutex_unlock(&client->lock); return -ENODEV; } |