diff options
author | Oded Gabbay <oded.gabbay@gmail.com> | 2019-05-04 16:43:20 +0300 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2019-05-04 16:43:20 +0300 |
commit | cfc2f35006cbecbbb6672652120cdaf0ec796593 (patch) | |
tree | d0bac25e3760e68ecac5fdceb1e70c983c830371 /drivers/misc/habanalabs/habanalabs_drv.c | |
parent | 60e8523e2ea18dc0c0cea69d6c1d69a065019062 (diff) | |
download | lwn-cfc2f35006cbecbbb6672652120cdaf0ec796593.tar.gz lwn-cfc2f35006cbecbbb6672652120cdaf0ec796593.zip |
habanalabs: improve a couple of error messages
This patch improves the error message that is shown when a new user tries
to open a new FD while there is already an existing user that is working
on the device.
It also improves the error message in case of missing firmware file.
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs/habanalabs_drv.c')
-rw-r--r-- | drivers/misc/habanalabs/habanalabs_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/habanalabs_drv.c b/drivers/misc/habanalabs/habanalabs_drv.c index 5f4d155be767..d8b47bb4729c 100644 --- a/drivers/misc/habanalabs/habanalabs_drv.c +++ b/drivers/misc/habanalabs/habanalabs_drv.c @@ -107,7 +107,7 @@ int hl_device_open(struct inode *inode, struct file *filp) if (atomic_read(&hdev->fd_open_cnt)) { dev_info_ratelimited(hdev->dev, - "Device %s is already attached to application\n", + "Can't open %s because another user is working on it\n", dev_name(hdev->dev)); mutex_unlock(&hdev->fd_open_cnt_lock); return -EBUSY; |