summaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2025-09-26 08:32:56 +0200
committerDavid Sterba <dsterba@suse.com>2025-11-24 21:37:36 +0100
commit9594783e4b4901cbc28ff940eff7e2554a4f7801 (patch)
treeb721b72174c1498fb6ad1b41197d83493cc280db /fs/btrfs/tree-log.c
parent4e700ac62ac12ffe8579680e6987b27066339d71 (diff)
btrfs: print-tree: use string format for key names
There's a warning when -Wformat=2 is used: fs/btrfs/print-tree.c: In function ‘key_type_string’: fs/btrfs/print-tree.c:424:17: warning: format not a string literal and no format arguments [-Wformat-nonliteral] 424 | scnprintf(buf, buf_size, key_to_str[key->type]); We're printing fixed strings from a table so there's no problem but let's fix the warning so we could enable the warning in fs/btrfs/. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions