summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/create_chunk.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-04-29 05:03:02 +0000
committerjkh <jkh@FreeBSD.org>1996-04-29 05:03:02 +0000
commitb431239bb3be5c214ce52625c63686706e1f7c80 (patch)
tree9e00edae9b557a40ed455a869750b34be9d1b3eb /lib/libdisk/create_chunk.c
parent9059910165e6899031d64bb8af99775f82d4cf5e (diff)
downloadFreeBSD-src-b431239bb3be5c214ce52625c63686706e1f7c80.zip
FreeBSD-src-b431239bb3be5c214ce52625c63686706e1f7c80.tar.gz
Move some warn()'s into DEBUG space since I don't need them coming
out in my curses interfaces and spamming my screen.
Diffstat (limited to 'lib/libdisk/create_chunk.c')
-rw-r--r--lib/libdisk/create_chunk.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c
index 05a22a2..32d8012 100644
--- a/lib/libdisk/create_chunk.c
+++ b/lib/libdisk/create_chunk.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: create_chunk.c,v 1.22 1995/12/07 10:33:20 peter Exp $
+ * $Id: create_chunk.c,v 1.23 1996/03/24 18:55:37 joerg Exp $
*
*/
@@ -221,7 +221,6 @@ Create_Chunk_DWIM(struct disk *d, struct chunk *parent , u_long size, chunk_e ty
offset = c1->offset;
goto found;
}
- warn("Not enough unused space");
return 0;
found:
if (parent->flags & CHUNK_BAD144) {
@@ -232,10 +231,8 @@ Create_Chunk_DWIM(struct disk *d, struct chunk *parent , u_long size, chunk_e ty
size = edge - offset + 1;
}
i = Add_Chunk(d,offset,size,"X",type,subtype,flags);
- if (i) {
- warn("Didn't cut it");
+ if (i)
return 0;
- }
Fixup_Names(d);
for (c1=parent->part; c1 ; c1 = c1->next)
if (c1->offset == offset)
OpenPOWER on IntegriCloud