diff options
| author | Weijie Gao <[email protected]> | 2026-05-20 16:27:36 +0800 |
|---|---|---|
| committer | Heiko Schocher <[email protected]> | 2026-07-08 11:33:09 +0200 |
| commit | 75d8b453ab2fd9f736844a25c3e6628668d9562f (patch) | |
| tree | ec4857f3130bb93c8f377985dcb3b320cd62f794 /include | |
| parent | b452246c8d378f8b38ee0a6ed49402b62fe94f7a (diff) | |
cmd: ubi: reorganize command messages
This patch moves normal subcommand messages into the main command function.
This will allow current and potential api functions being called with clean
output on success.
A new function ubi_require_volume() is added for finding and printing error
message if volume not found. The original ubi_find_volume() will be silent
for being an api function.
To avoid ubi_require_volume() being called twice for volume read/remove,
some changes are required:
- The parameter of ubi_remove_vol() is changed to accept
'struct ubi_volume *' directly.
- The original ubi_volume_read() is renamed to __ubi_volume_read, with its
first parameter changed to accept also 'struct ubi_volume *' directly.
- A new ubi_volume_read() is added to wrap __ubi_volume_read() to accept
volume name as its first parameter.
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Weijie Gao <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
