mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
Delete some dead code
printf_pad() has been superseded by printbuf tabstops. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
62839683e8
commit
fa7a74fcc8
19
tools-util.c
19
tools-util.c
@ -126,25 +126,6 @@ struct stat xstat(const char *path)
|
|||||||
return statbuf;
|
return statbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Formatting: */
|
|
||||||
|
|
||||||
int printf_pad(unsigned pad, const char * fmt, ...)
|
|
||||||
{
|
|
||||||
va_list args;
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
va_start(args, fmt);
|
|
||||||
ret = vprintf(fmt, args);
|
|
||||||
va_end(args);
|
|
||||||
|
|
||||||
while (ret++ < pad)
|
|
||||||
putchar(' ');
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Argument parsing stuff: */
|
|
||||||
|
|
||||||
/* File parsing (i.e. sysfs) */
|
/* File parsing (i.e. sysfs) */
|
||||||
|
|
||||||
char *read_file_str(int dirfd, const char *path)
|
char *read_file_str(int dirfd, const char *path)
|
||||||
|
@ -53,8 +53,6 @@ struct stat xstat(const char *);
|
|||||||
_ret; \
|
_ret; \
|
||||||
})
|
})
|
||||||
|
|
||||||
int printf_pad(unsigned pad, const char * fmt, ...);
|
|
||||||
|
|
||||||
char *read_file_str(int, const char *);
|
char *read_file_str(int, const char *);
|
||||||
u64 read_file_u64(int, const char *);
|
u64 read_file_u64(int, const char *);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user