projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add priority-donate-lower to rubric.
[pintos-anon]
/
src
/
lib
/
stdio.c
diff --git
a/src/lib/stdio.c
b/src/lib/stdio.c
index 29396589d61995fe1e3a1d299ef05a9ee7cb406f..baefaf0eda12774b36b2aa0eddeb6ad0f87ad20b 100644
(file)
--- a/
src/lib/stdio.c
+++ b/
src/lib/stdio.c
@@
-74,8
+74,7
@@
snprintf (char *buffer, size_t buf_size, const char *format, ...)
/* Writes formatted output to the console.
In the kernel, the console is both the video display and first
serial port.
/* Writes formatted output to the console.
In the kernel, the console is both the video display and first
serial port.
- In userspace, the console is file descriptor 1.
-*/
+ In userspace, the console is file descriptor 1. */
int
printf (const char *format, ...)
{
int
printf (const char *format, ...)
{
@@
-464,9
+463,9
@@
parse_conversion (const char *format, struct printf_conversion *c,
auxiliary data AUX. The integer converted has absolute value
VALUE. If IS_SIGNED is true, does a signed conversion with
NEGATIVE indicating a negative value; otherwise does an
auxiliary data AUX. The integer converted has absolute value
VALUE. If IS_SIGNED is true, does a signed conversion with
NEGATIVE indicating a negative value; otherwise does an
- unsigned conversion and ignores IS_SIGNED. The output
will
- use the given DIGITS, with strlen(DIGITS) indicating the
-
output base. Details of the conversion
are in C. */
+ unsigned conversion and ignores IS_SIGNED. The output
is done
+ according to the provided base B. Details of the conversion
+ are in C. */
static void
format_integer (uintmax_t value, bool is_signed, bool negative,
const struct integer_base *b,
static void
format_integer (uintmax_t value, bool is_signed, bool negative,
const struct integer_base *b,