Skip to content

Commit cf98ee7

Browse files
committed
btrfs-progs: remove stale debugging prints in comments
CodeQL reports some commented out code which is from csum switch feature development times. Remove one and make the other a proper comment. Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 32cee14 commit cf98ee7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

kernel-shared/disk-io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static int __csum_tree_block_size(struct extent_buffer *buf, u16 csum_size,
194194

195195
if (verify) {
196196
if (buf->fs_info && buf->fs_info->skip_csum_check) {
197-
/* printf("skip csum check for block %llu\n", buf->start); */
197+
/* Skip csum check for block buf->start. */
198198
} else if (memcmp_extent_buffer(buf, result, 0, csum_size)) {
199199
if (!silent) {
200200
char found[BTRFS_CSUM_STRING_LEN];

kernel-shared/file-item.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ int btrfs_csum_file_block(struct btrfs_trans_handle *trans, u64 logical,
203203
if (ret == -EFBIG) {
204204
u32 item_size;
205205

206-
/* printf("item not big enough for bytenr %llu\n", bytenr); */
207206
/* we found one, but it isn't big enough yet */
208207
leaf = path->nodes[0];
209208
item_size = btrfs_item_size(leaf, path->slots[0]);

0 commit comments

Comments
 (0)