aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatias Bjørling <mb@lightnvm.io>2018-03-29 18:05:24 -0400
committerJens Axboe <axboe@kernel.dk>2018-03-29 19:29:09 -0400
commitb65125fa57973baeabc3a6fe2f8c1179bd45fd95 (patch)
tree7abf3254448518a02982235031e12e32cb631b57
parent5565b0ca50b5b82e0439f6e4dc7fbb122cd0b025 (diff)
lightnvm: remove function name in strings
For the sysfs functions, the function names are embedded into their error strings. If the function name later changes, the string may not be updated accordingly. Update the strings to use __func__ to avoid this. Signed-off-by: Matias Bjørling <mb@lightnvm.io> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--drivers/nvme/host/lightnvm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c
index ffd64a83c8c3..41279da799ed 100644
--- a/drivers/nvme/host/lightnvm.c
+++ b/drivers/nvme/host/lightnvm.c
@@ -1028,8 +1028,8 @@ static ssize_t nvm_dev_attr_show(struct device *dev,
1028 } else { 1028 } else {
1029 return scnprintf(page, 1029 return scnprintf(page,
1030 PAGE_SIZE, 1030 PAGE_SIZE,
1031 "Unhandled attr(%s) in `nvm_dev_attr_show`\n", 1031 "Unhandled attr(%s) in `%s`\n",
1032 attr->name); 1032 attr->name, __func__);
1033 } 1033 }
1034} 1034}
1035 1035
@@ -1103,8 +1103,8 @@ static ssize_t nvm_dev_attr_show_12(struct device *dev,
1103 return scnprintf(page, PAGE_SIZE, "%u\n", NVM_MAX_VLBA); 1103 return scnprintf(page, PAGE_SIZE, "%u\n", NVM_MAX_VLBA);
1104 } else { 1104 } else {
1105 return scnprintf(page, PAGE_SIZE, 1105 return scnprintf(page, PAGE_SIZE,
1106 "Unhandled attr(%s) in `nvm_dev_attr_show_12`\n", 1106 "Unhandled attr(%s) in `%s`\n",
1107 attr->name); 1107 attr->name, __func__);
1108 } 1108 }
1109} 1109}
1110 1110
@@ -1149,8 +1149,8 @@ static ssize_t nvm_dev_attr_show_20(struct device *dev,
1149 return scnprintf(page, PAGE_SIZE, "%u\n", geo->tbem); 1149 return scnprintf(page, PAGE_SIZE, "%u\n", geo->tbem);
1150 } else { 1150 } else {
1151 return scnprintf(page, PAGE_SIZE, 1151 return scnprintf(page, PAGE_SIZE,
1152 "Unhandled attr(%s) in `nvm_dev_attr_show_20`\n", 1152 "Unhandled attr(%s) in `%s`\n",
1153 attr->name); 1153 attr->name, __func__);
1154 } 1154 }
1155} 1155}
1156 1156