block: remove newlines from the warnings in blk_validate_integrity_limits
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Aug 2025 04:54:51 +0000 (06:54 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Aug 2025 16:17:49 +0000 (10:17 -0600)
Otherwise they are very hard to read in the kernel log.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20250818045456.1482889-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-settings.c

index 491c0c48d52b4d863a0a27989a7bd809502c6a20..d6438e6c276dcc23ff42c2aadb3cb58d2c33e3ff 100644 (file)
@@ -157,16 +157,14 @@ static int blk_validate_integrity_limits(struct queue_limits *lim)
        switch (bi->csum_type) {
        case BLK_INTEGRITY_CSUM_NONE:
                if (bi->pi_tuple_size) {
-                       pr_warn("pi_tuple_size must be 0 when checksum type \
-                                is none\n");
+                       pr_warn("pi_tuple_size must be 0 when checksum type is none\n");
                        return -EINVAL;
                }
                break;
        case BLK_INTEGRITY_CSUM_CRC:
        case BLK_INTEGRITY_CSUM_IP:
                if (bi->pi_tuple_size != sizeof(struct t10_pi_tuple)) {
-                       pr_warn("pi_tuple_size mismatch for T10 PI: expected \
-                                %zu, got %u\n",
+                       pr_warn("pi_tuple_size mismatch for T10 PI: expected %zu, got %u\n",
                                 sizeof(struct t10_pi_tuple),
                                 bi->pi_tuple_size);
                        return -EINVAL;
@@ -174,8 +172,7 @@ static int blk_validate_integrity_limits(struct queue_limits *lim)
                break;
        case BLK_INTEGRITY_CSUM_CRC64:
                if (bi->pi_tuple_size != sizeof(struct crc64_pi_tuple)) {
-                       pr_warn("pi_tuple_size mismatch for CRC64 PI: \
-                                expected %zu, got %u\n",
+                       pr_warn("pi_tuple_size mismatch for CRC64 PI: expected %zu, got %u\n",
                                 sizeof(struct crc64_pi_tuple),
                                 bi->pi_tuple_size);
                        return -EINVAL;