diff options
Diffstat (limited to 'fs/partitions/ultrix.c')
-rw-r--r-- | fs/partitions/ultrix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/partitions/ultrix.c b/fs/partitions/ultrix.c index ec852c11dce4..8dbaf9f77a99 100644 --- a/fs/partitions/ultrix.c +++ b/fs/partitions/ultrix.c | |||
@@ -9,7 +9,7 @@ | |||
9 | #include "check.h" | 9 | #include "check.h" |
10 | #include "ultrix.h" | 10 | #include "ultrix.h" |
11 | 11 | ||
12 | int ultrix_partition(struct parsed_partitions *state, struct block_device *bdev) | 12 | int ultrix_partition(struct parsed_partitions *state) |
13 | { | 13 | { |
14 | int i; | 14 | int i; |
15 | Sector sect; | 15 | Sector sect; |
@@ -26,7 +26,7 @@ int ultrix_partition(struct parsed_partitions *state, struct block_device *bdev) | |||
26 | #define PT_MAGIC 0x032957 /* Partition magic number */ | 26 | #define PT_MAGIC 0x032957 /* Partition magic number */ |
27 | #define PT_VALID 1 /* Indicates if struct is valid */ | 27 | #define PT_VALID 1 /* Indicates if struct is valid */ |
28 | 28 | ||
29 | data = read_dev_sector(bdev, (16384 - sizeof(*label))/512, §); | 29 | data = read_part_sector(state, (16384 - sizeof(*label))/512, §); |
30 | if (!data) | 30 | if (!data) |
31 | return -1; | 31 | return -1; |
32 | 32 | ||
@@ -39,7 +39,7 @@ int ultrix_partition(struct parsed_partitions *state, struct block_device *bdev) | |||
39 | label->pt_part[i].pi_blkoff, | 39 | label->pt_part[i].pi_blkoff, |
40 | label->pt_part[i].pi_nblocks); | 40 | label->pt_part[i].pi_nblocks); |
41 | put_dev_sector(sect); | 41 | put_dev_sector(sect); |
42 | printk ("\n"); | 42 | strlcat(state->pp_buf, "\n", PAGE_SIZE); |
43 | return 1; | 43 | return 1; |
44 | } else { | 44 | } else { |
45 | put_dev_sector(sect); | 45 | put_dev_sector(sect); |