Remove debugging printfs which should not have been committed.
This commit is contained in:
parent
1628730478
commit
ce40bcd0d1
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user