1
0
mirror of https://github.com/DoctorWkt/pdp7-unix.git synced 2026-04-14 07:59:13 +00:00

Oops, don't print out allocated blocks in mkfs7 if we didn't allocate any.

This commit is contained in:
Warren Toomey
2016-03-23 13:41:17 +10:00
parent 287f192f2b
commit c2cbf1ff3c

View File

@@ -130,7 +130,8 @@ sub allocate_blocks {
}
dprintf(
"Allocated blocks for size %d: %d .. %d (%06o .. %06o)\n",
$numwords, $blklist[0], $blklist[-1], $blklist[0], $blklist[-1]);
$numwords, $blklist[0], $blklist[-1], $blklist[0], $blklist[-1])
if ($blklist[0]);
return (@blklist);
}