btrfs: remove colon from messages with state
authorDavid Sterba <dsterba@suse.com>
Tue, 24 Jan 2023 19:44:38 +0000 (20:44 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 17 Apr 2024 23:46:35 +0000 (01:46 +0200)
commite5a78fdec0114266d3c47df413d2d7955807fad9
tree722209e38f9cf30d9ba422f6635a24abe20bbfbd
parent1db7959aacd905e6487d0478ac01d89f86eb1e51
btrfs: remove colon from messages with state

The message format in syslog is usually made of two parts:

  prefix ":" message

Various tools parse the prefix up to the first ":". When there's
an additional status of a btrfs filesystem like

  [5.199782] BTRFS info (device nvme1n1p1: state M): use zstd compression, level 9

where 'M' is for remount, there's one more ":" that does not conform to
the format. Remove it.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/messages.c