summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2011-09-27 13:00:20 -0400
committerFrans Kaashoek <[email protected]>2011-09-27 13:00:20 -0400
commit0ca1c0407d3da826ad8415e3204e1c53e394e204 (patch)
tree197b25b7f02b071369d2aa452848521e327a3f39 /console.c
parent9b972c06b172531e5792fc0e05d83319d325e0ee (diff)
parent1e6f0146d2e194045188ba24826eaaaee05605cb (diff)
downloadxv6-labs-0ca1c0407d3da826ad8415e3204e1c53e394e204.tar.gz
xv6-labs-0ca1c0407d3da826ad8415e3204e1c53e394e204.tar.bz2
xv6-labs-0ca1c0407d3da826ad8415e3204e1c53e394e204.zip
Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Diffstat (limited to 'console.c')
-rw-r--r--console.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/console.c b/console.c
index bc2c167..766dc30 100644
--- a/console.c
+++ b/console.c
@@ -53,7 +53,7 @@ printint(int xx, int base, int sign)
void
cprintf(char *fmt, ...)
{
- int i, c, state, locking;
+ int i, c, locking;
uint *argp;
char *s;
@@ -65,7 +65,6 @@ cprintf(char *fmt, ...)
panic("null fmt");
argp = (uint*)(void*)(&fmt + 1);
- state = 0;
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
if(c != '%'){
consputc(c);