aboutsummaryrefslogtreecommitdiff
path: root/pk
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@eecs.berkeley.edu>2014-01-17 14:12:42 -0800
committerAndrew Waterman <waterman@eecs.berkeley.edu>2014-01-17 14:12:42 -0800
commitac88604e8850779c33ec888ccc8399604fb2677c (patch)
tree50728b299a6e72c23b2aba471e6d2d5dbe201004 /pk
parentb71e8ecfda6a75d4bcf240e61dbc3348e76af094 (diff)
downloadpk-ac88604e8850779c33ec888ccc8399604fb2677c.zip
pk-ac88604e8850779c33ec888ccc8399604fb2677c.tar.gz
pk-ac88604e8850779c33ec888ccc8399604fb2677c.tar.bz2
Minor cleanup
Diffstat (limited to 'pk')
-rw-r--r--pk/fp.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/pk/fp.c b/pk/fp.c
index 8c2a9a5..5848448 100644
--- a/pk/fp.c
+++ b/pk/fp.c
@@ -215,11 +215,8 @@ int emulate_fp(trapframe_t* tf)
static void __attribute__((noinline))
set_fp_reg(unsigned int which, unsigned int dp, uint64_t val)
{
- if(noisy)
- {
- printk("fpr%c[%x] <= ",dp?'d':'s',which);
- printk("%lx\n",val);
- }
+ if (noisy)
+ printk("fpr%c[%x] <= %lx\n", dp ? 'd' : 's', which, val);
if(dp || !have_fp)
fp_state.fpr[which] = val;
@@ -248,11 +245,8 @@ get_fp_reg(unsigned int which, unsigned int dp)
GET_FP_REG(0,s,val);
}
- if(noisy)
- {
- printk("fpr%c[%x] => ",dp?'d':'s',which);
- printk("%lx\n",val);
- }
+ if (noisy)
+ printk("fpr%c[%x] => %lx\n", dp ? 'd' : 's', which, val);
return val;
}