Don't print the total number of partitions removed now that we print
the name of the partitions that we remove. A summary is unnecessary and even makes parsing of the output more difficult. MFC after: 1 week
This commit is contained in:
parent
43850fb15e
commit
7b637cbb7e
@ -64,7 +64,7 @@ rem(int fd)
|
||||
map_t *m;
|
||||
struct gpt_hdr *hdr;
|
||||
struct gpt_ent *ent;
|
||||
unsigned int i, removed;
|
||||
unsigned int i;
|
||||
|
||||
gpt = map_find(MAP_TYPE_PRI_GPT_HDR);
|
||||
if (gpt == NULL) {
|
||||
@ -87,8 +87,6 @@ rem(int fd)
|
||||
return;
|
||||
}
|
||||
|
||||
removed = 0;
|
||||
|
||||
/* Remove all matching entries in the map. */
|
||||
for (m = map_first(); m != NULL; m = m->map_next) {
|
||||
if (m->map_type != MAP_TYPE_GPT_PART || m->map_index < 1)
|
||||
@ -133,11 +131,7 @@ rem(int fd)
|
||||
gpt_write(fd, tpg);
|
||||
|
||||
printf("%sp%u removed\n", device_name, m->map_index);
|
||||
|
||||
removed++;
|
||||
}
|
||||
|
||||
warnx("%s: %d partition(s) removed", device_name, removed);
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user