Skip to content

Commit fbfb131

Browse files
Piro Yanggregkh
authored andcommitted
staging: vme_user: print more detailed infomation when an error occurs
when the slave_get function pointer belongs to the struct vme_bridge member is NULL, it prompts that the detailed function name "vme_slave_set" equivalent to __func__ not supported. it is similar to the vme_slave_get function: when vme_bridge->slave_set function pointer is NULL to print detailed function name by using __func__. Signed-off-by: Piro Yang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 9ebffbe commit fbfb131

File tree

1 file changed

+1
-1
lines changed
  • drivers/staging/vme_user

1 file changed

+1
-1
lines changed

drivers/staging/vme_user/vme.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ int vme_slave_set(struct vme_resource *resource, int enabled,
340340
image = list_entry(resource->entry, struct vme_slave_resource, list);
341341

342342
if (!bridge->slave_set) {
343-
dev_err(bridge->parent, "Function not supported\n");
343+
dev_err(bridge->parent, "%s not supported\n", __func__);
344344
return -EINVAL;
345345
}
346346

0 commit comments

Comments
 (0)