Skip to content
Commit 3da65638 authored by Aurelien Jarno's avatar Aurelien Jarno Committed by Fabio Baltieri
Browse files

drivers: hwinfo: shell: fix error message when no hardware support



When there is no implementation for a particular hardware information
device, the API return -ENOSYS, while the hardware information shell
checks for -ENOTSUP. This returns a non-user friendly message:

  uart:~$ hwinfo devid
  Error: -88

The API can't be changed easily without breaking things, so let's change
the shell instead. This gives:

  uart:~$ hwinfo devid
  Not supported by hardware

Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent 1188305c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment