SCCS-vsn: sys/kern/subr_prf.c 4.5
-/* subr_prf.c 4.4 %G% */
+/* subr_prf.c 4.5 %G% */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
- * Print an unsigned integer in base b.
+ * Print an integer in base b. If the base is ten it is condidered a
+ * signed integer otherwise it is treated as unsigned.
+ register unsigned long a;
+ register long a1 = n;
- if (n<0) { /* shouldn't happen */
+ if (b == 10 && a1 < 0) {
}
if(a = n/b)
printn(a, b, trace);
}
if(a = n/b)
printn(a, b, trace);