From ab2aad8553da4f255eee8a03c0eff8f992fa8819 Mon Sep 17 00:00:00 2001 From: Mike Gerdts Date: Wed, 17 Nov 2021 20:37:26 +0000 Subject: [PATCH] blobcli: include bdev name in error message When multiple bdevs are accessible by blobcli, it may be helpful to know which bdev is giving the "Unsupported bdev event" error message. Signed-off-by: Mike Gerdts Change-Id: Ic55eacad13336366de3d6eac8bde932decbb2732 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11255 Tested-by: SPDK CI Jenkins Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- examples/blob/cli/blobcli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/blob/cli/blobcli.c b/examples/blob/cli/blobcli.c index 120d877c0e..3f6553044d 100644 --- a/examples/blob/cli/blobcli.c +++ b/examples/blob/cli/blobcli.c @@ -3,7 +3,7 @@ * * Copyright (c) Intel Corporation. * All rights reserved. - * Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -897,7 +897,7 @@ static void base_bdev_event_cb(enum spdk_bdev_event_type type, struct spdk_bdev *bdev, void *event_ctx) { - printf("Unsupported bdev event: type %d\n", type); + printf("Unsupported bdev event: type %d on bdev %s\n", type, spdk_bdev_get_name(bdev)); } /*