aboutsummaryrefslogtreecommitdiff
path: root/pk/fp.c
diff options
context:
space:
mode:
Diffstat (limited to 'pk/fp.c')
-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;
}