aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-05-23 18:15:11 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-05-23 18:15:11 +0000
commitb71b54bb25eef1c93f70422f4068d8d7a6d7ba01 (patch)
treecb48804e7b3045e71dd2844064146ec7f2c995e5 /tools/firmware-utils
parent90880f12f51715afa60c261f2089191beef5c2b2 (diff)
downloadupstream-b71b54bb25eef1c93f70422f4068d8d7a6d7ba01.tar.gz
upstream-b71b54bb25eef1c93f70422f4068d8d7a6d7ba01.tar.bz2
upstream-b71b54bb25eef1c93f70422f4068d8d7a6d7ba01.zip
fix x86 boot filesystem allocation (#1736)
SVN-Revision: 7312
Diffstat (limited to 'tools/firmware-utils')
-rw-r--r--tools/firmware-utils/src/ptgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/ptgen.c b/tools/firmware-utils/src/ptgen.c
index ce93016667..8733e252cb 100644
--- a/tools/firmware-utils/src/ptgen.c
+++ b/tools/firmware-utils/src/ptgen.c
@@ -140,8 +140,8 @@ static int gen_ptable(int nr)
if (verbose)
fprintf(stderr, "Partition %d: start=%ld, end=%ld, size=%ld\n", i, (long) start * 512, ((long) start + (long) len) * 512, (long) len * 512);
printf("%ld\n", ((long) start * 512));
+ printf("%ld\n", ((long) len * 512));
}
- printf("%ld\n", ((long) (start + len) * 512));
if ((fd = open(filename, O_WRONLY|O_CREAT, 0644)) < 0) {
fprintf(stderr, "Can't open output file '%s'\n",filename);