diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2012-04-16 18:01:24 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-18 16:49:00 -0700 |
commit | 15ecf29e1666ac0c18625ad276423c0291536543 (patch) | |
tree | 29551c3e750243280e4041b4a5f21b21da7309f4 /drivers/staging/android | |
parent | ad220db422c778a30f83061e9e2458b5f0ee6704 (diff) | |
download | linux-15ecf29e1666ac0c18625ad276423c0291536543.tar.gz linux-15ecf29e1666ac0c18625ad276423c0291536543.tar.bz2 linux-15ecf29e1666ac0c18625ad276423c0291536543.zip |
staging: fix android alarm.c printk format warnings
Fix printk format warnings by using 't' modifier for ptrdiff_t.
drivers/staging/android/alarm.c:344:2: warning: format '%ld' expects type 'long int', but argument 2 has type 'int'
drivers/staging/android/alarm.c:367:3: warning: format '%ld' expects type 'long int', but argument 2 has type 'int'
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Brian Swetland <swetland@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android')
-rw-r--r-- | drivers/staging/android/alarm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/android/alarm.c b/drivers/staging/android/alarm.c index d42a592927ea..0cae132fbfd7 100644 --- a/drivers/staging/android/alarm.c +++ b/drivers/staging/android/alarm.c @@ -341,7 +341,7 @@ static enum hrtimer_restart alarm_timer_triggered(struct hrtimer *timer) now = base->stopped ? base->stopped_time : hrtimer_cb_get_time(timer); now = ktime_sub(now, base->delta); - pr_alarm(INT, "alarm_timer_triggered type %ld at %lld\n", + pr_alarm(INT, "alarm_timer_triggered type %td at %lld\n", base - alarms, ktime_to_ns(now)); while (base->first) { @@ -364,7 +364,7 @@ static enum hrtimer_restart alarm_timer_triggered(struct hrtimer *timer) spin_lock_irqsave(&alarm_slock, flags); } if (!base->first) - pr_alarm(FLOW, "no more alarms of type %ld\n", base - alarms); + pr_alarm(FLOW, "no more alarms of type %td\n", base - alarms); update_timer_locked(base, true); spin_unlock_irqrestore(&alarm_slock, flags); return HRTIMER_NORESTART; |