diff options
author | marcel <marcel@FreeBSD.org> | 2005-08-30 06:16:31 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2005-08-30 06:16:31 +0000 |
commit | 7b637cbb7ee0dbeb6591df1795d7f2eac3403a7c (patch) | |
tree | 5fb4cddb596aca071d2dfdd138ae69813cc78278 | |
parent | 43850fb15e2d6b64f78f1b5b2a7f1625e21bcb1f (diff) | |
download | FreeBSD-src-7b637cbb7ee0dbeb6591df1795d7f2eac3403a7c.zip FreeBSD-src-7b637cbb7ee0dbeb6591df1795d7f2eac3403a7c.tar.gz |
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
-rw-r--r-- | sbin/gpt/remove.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sbin/gpt/remove.c b/sbin/gpt/remove.c index 9949d00..d1f388e 100644 --- a/sbin/gpt/remove.c +++ b/sbin/gpt/remove.c @@ -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 |