From 6eccbe81f1baf11e00d55bdf86827c632de4cc5f Mon Sep 17 00:00:00 2001 From: Nikolay Borisov Date: Tue, 5 Dec 2017 10:39:44 +0200 Subject: btrfs-progs: Factor out common print_device_info This function has been copied twice in chunk-recover and super-recover. Factor it out into utils.c/h and use it. No functional changes. Signed-off-by: Nikolay Borisov Reviewed-by: Qu Wenruo Signed-off-by: David Sterba --- utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils.h') diff --git a/utils.h b/utils.h index bd7484fd..b871c9ff 100644 --- a/utils.h +++ b/utils.h @@ -173,6 +173,9 @@ int prefixcmp(const char *str, const char *prefix); unsigned long total_memory(void); +void print_device_info(struct btrfs_device *device, char *prefix); +void print_all_devices(struct list_head *devices); + /* * Global program state, configurable by command line and available to * functions without extra context passing. -- cgit v1.2.3