aboutsummaryrefslogtreecommitdiff
path: root/lib/fstree/fstree_from_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fstree/fstree_from_file.c')
-rw-r--r--lib/fstree/fstree_from_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fstree/fstree_from_file.c b/lib/fstree/fstree_from_file.c
index 53c2cfb..13328d5 100644
--- a/lib/fstree/fstree_from_file.c
+++ b/lib/fstree/fstree_from_file.c
@@ -29,8 +29,8 @@ static int add_device(fstree_t *fs, const char *filename, size_t line_num,
unsigned int maj, min;
char c;
- if (sscanf(extra, "%c %u:%u", &c, &maj, &min) != 3) {
- fprintf(stderr, "%s: %zu: expected '<c|b> major:minor'\n",
+ if (sscanf(extra, "%c %u %u", &c, &maj, &min) != 3) {
+ fprintf(stderr, "%s: %zu: expected '<c|b> major minor'\n",
filename, line_num);
return -1;
}