Skip to content

Commit f4ae174

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: remove newlines from the warnings in blk_validate_integrity_limits
Otherwise they are very hard to read in the kernel log. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Anuj Gupta <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 61ca3b8 commit f4ae174

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

block/blk-settings.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,25 +157,22 @@ static int blk_validate_integrity_limits(struct queue_limits *lim)
157157
switch (bi->csum_type) {
158158
case BLK_INTEGRITY_CSUM_NONE:
159159
if (bi->pi_tuple_size) {
160-
pr_warn("pi_tuple_size must be 0 when checksum type \
161-
is none\n");
160+
pr_warn("pi_tuple_size must be 0 when checksum type is none\n");
162161
return -EINVAL;
163162
}
164163
break;
165164
case BLK_INTEGRITY_CSUM_CRC:
166165
case BLK_INTEGRITY_CSUM_IP:
167166
if (bi->pi_tuple_size != sizeof(struct t10_pi_tuple)) {
168-
pr_warn("pi_tuple_size mismatch for T10 PI: expected \
169-
%zu, got %u\n",
167+
pr_warn("pi_tuple_size mismatch for T10 PI: expected %zu, got %u\n",
170168
sizeof(struct t10_pi_tuple),
171169
bi->pi_tuple_size);
172170
return -EINVAL;
173171
}
174172
break;
175173
case BLK_INTEGRITY_CSUM_CRC64:
176174
if (bi->pi_tuple_size != sizeof(struct crc64_pi_tuple)) {
177-
pr_warn("pi_tuple_size mismatch for CRC64 PI: \
178-
expected %zu, got %u\n",
175+
pr_warn("pi_tuple_size mismatch for CRC64 PI: expected %zu, got %u\n",
179176
sizeof(struct crc64_pi_tuple),
180177
bi->pi_tuple_size);
181178
return -EINVAL;

0 commit comments

Comments
 (0)