Module Name:    src
Committed By:   jnemeth
Date:           Sat Oct 26 20:31:23 UTC 2013

Modified Files:
        src/sbin/gpt: map.c

Log Message:
cosmetic fix from drochner@


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sbin/gpt/map.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/gpt/map.c
diff -u src/sbin/gpt/map.c:1.2 src/sbin/gpt/map.c:1.3
--- src/sbin/gpt/map.c:1.2	Sun Oct 15 22:36:29 2006
+++ src/sbin/gpt/map.c	Sat Oct 26 20:31:23 2013
@@ -29,7 +29,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/map.c,v 1.6 2005/08/31 01:47:19 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: map.c,v 1.2 2006/10/15 22:36:29 christos Exp $");
+__RCSID("$NetBSD: map.c,v 1.3 2013/10/26 20:31:23 jnemeth Exp $");
 #endif
 
 #include <sys/types.h>
@@ -72,8 +72,8 @@ map_add(off_t start, off_t size, int typ
 		return (NULL);
 
 	if (n->map_start + n->map_size < start + size) {
-		warnx("error: bogus map");
-		return (0);
+		warnx("error: map entry doesn't fit media");
+		return (NULL);
 	}
 
 	if (n->map_start == start && n->map_size == size) {

Reply via email to