Remove debugging printfs which should not have been committed.

This commit is contained in:
Poul-Henning Kamp 2003-05-04 18:48:25 +00:00
parent 1628730478
commit ce40bcd0d1
2 changed files with 0 additions and 7 deletions

View File

@ -98,7 +98,6 @@ g_bsd_modify(struct g_geom *gp, u_char *label)
error = bsd_disklabel_le_dec(label, &dl, MAXPARTITIONS);
if (error) {
printf("HERE %s %d\n", __FILE__, __LINE__);
return (error);
}
@ -122,13 +121,11 @@ printf("HERE %s %d\n", __FILE__, __LINE__);
/* ... or a smaller sector size. */
if (dl.d_secsize < secsize) {
printf("HERE %s %d\n", __FILE__, __LINE__);
return (EINVAL);
}
/* ... or a non-multiple sector size. */
if (dl.d_secsize % secsize != 0) {
printf("HERE %s %d\n", __FILE__, __LINE__);
return (EINVAL);
}

View File

@ -49,7 +49,6 @@
#include <sys/systm.h>
#else
#include <string.h>
#include <stdio.h>
#endif
void
@ -76,13 +75,11 @@ bsd_disklabel_le_dec(u_char *ptr, struct disklabel *d, int maxpart)
d->d_magic2 = le32dec(ptr + 132);
if (d->d_magic2 != DISKMAGIC) {
printf("HERE %s %d\n", __FILE__, __LINE__);
return(EINVAL);
}
d->d_npartitions = le16dec(ptr + 138);
if (d->d_npartitions > maxpart) {
printf("HERE %s %d\n", __FILE__, __LINE__);
return(EINVAL);
}
@ -91,7 +88,6 @@ printf("HERE %s %d\n", __FILE__, __LINE__);
for (p = ptr; p < pe; p += 2)
sum ^= le16dec(p);
if (sum != 0) {
printf("HERE %s %d\n", __FILE__, __LINE__);
return(EINVAL);
}