Rev 1204 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1204 | Rev 1224 | ||
---|---|---|---|
Line 208... | Line 208... | ||
208 | * @param width |
208 | * @param width |
209 | * @param precision |
209 | * @param precision |
210 | * @param base Base to print the number in (should |
210 | * @param base Base to print the number in (should |
211 | * be in range 2 .. 16). |
211 | * be in range 2 .. 16). |
212 | * @param flags output modifiers |
212 | * @param flags output modifiers |
213 | * @return number of written characters or negative value on fail. |
213 | * @return number of written characters or EOF. |
214 | */ |
214 | */ |
215 | static int print_number(__u64 num, int width, int precision, int base , __u64 flags) |
215 | static int print_number(__u64 num, int width, int precision, int base , __u64 flags) |
216 | { |
216 | { |
217 | char *digits = digits_small; |
217 | char *digits = digits_small; |
218 | char d[PRINT_NUMBER_BUFFER_SIZE]; /* this is good enough even for base == 2, prefix and sign */ |
218 | char d[PRINT_NUMBER_BUFFER_SIZE]; /* this is good enough even for base == 2, prefix and sign */ |