summaryrefslogtreecommitdiff
path: root/drivers/md/dm-vdo/errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-vdo/errors.c')
-rw-r--r--drivers/md/dm-vdo/errors.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/md/dm-vdo/errors.c b/drivers/md/dm-vdo/errors.c
index 8b2d22381274..6f89eb1c63a3 100644
--- a/drivers/md/dm-vdo/errors.c
+++ b/drivers/md/dm-vdo/errors.c
@@ -154,19 +154,19 @@ const char *uds_string_error(int errnum, char *buf, size_t buflen)
block_name = get_error_info(errnum, &info);
if (block_name != NULL) {
if (info != NULL) {
- buffer = uds_append_to_buffer(buffer, buf_end, "%s: %s",
+ buffer = vdo_append_to_buffer(buffer, buf_end, "%s: %s",
block_name, info->message);
} else {
- buffer = uds_append_to_buffer(buffer, buf_end, "Unknown %s %d",
+ buffer = vdo_append_to_buffer(buffer, buf_end, "Unknown %s %d",
block_name, errnum);
}
} else if (info != NULL) {
- buffer = uds_append_to_buffer(buffer, buf_end, "%s", info->message);
+ buffer = vdo_append_to_buffer(buffer, buf_end, "%s", info->message);
} else {
const char *tmp = system_string_error(errnum, buffer, buf_end - buffer);
if (tmp != buffer)
- buffer = uds_append_to_buffer(buffer, buf_end, "%s", tmp);
+ buffer = vdo_append_to_buffer(buffer, buf_end, "%s", tmp);
else
buffer += strlen(tmp);
}
@@ -188,19 +188,19 @@ const char *uds_string_error_name(int errnum, char *buf, size_t buflen)
block_name = get_error_info(errnum, &info);
if (block_name != NULL) {
if (info != NULL) {
- buffer = uds_append_to_buffer(buffer, buf_end, "%s", info->name);
+ buffer = vdo_append_to_buffer(buffer, buf_end, "%s", info->name);
} else {
- buffer = uds_append_to_buffer(buffer, buf_end, "%s %d",
+ buffer = vdo_append_to_buffer(buffer, buf_end, "%s %d",
block_name, errnum);
}
} else if (info != NULL) {
- buffer = uds_append_to_buffer(buffer, buf_end, "%s", info->name);
+ buffer = vdo_append_to_buffer(buffer, buf_end, "%s", info->name);
} else {
const char *tmp;
tmp = system_string_error(errnum, buffer, buf_end - buffer);
if (tmp != buffer)
- buffer = uds_append_to_buffer(buffer, buf_end, "%s", tmp);
+ buffer = vdo_append_to_buffer(buffer, buf_end, "%s", tmp);
else
buffer += strlen(tmp);
}