summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_debugfs.c
diff options
context:
space:
mode:
authorMarek Lindner <lindner_marek@yahoo.de>2012-03-01 15:35:20 +0800
committerAntonio Quartulli <ordex@autistici.org>2012-05-11 10:08:13 +0200
commit0b0094e000840115b5baece2293c5fb1aab4fded (patch)
treede0179b4d859a31deb00d9d8ed2860f422313ee7 /net/batman-adv/bat_debugfs.c
parentd7b2a97e03ad40c7986d3c2707b0b5ba79a63884 (diff)
downloadblackbird-op-linux-0b0094e000840115b5baece2293c5fb1aab4fded.tar.gz
blackbird-op-linux-0b0094e000840115b5baece2293c5fb1aab4fded.zip
batman-adv: replace HZ calculations with jiffies_to_msecs()
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Acked-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/bat_debugfs.c')
-rw-r--r--net/batman-adv/bat_debugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/bat_debugfs.c b/net/batman-adv/bat_debugfs.c
index 916380c73ab7..3b588f86d770 100644
--- a/net/batman-adv/bat_debugfs.c
+++ b/net/batman-adv/bat_debugfs.c
@@ -83,8 +83,8 @@ int debug_log(struct bat_priv *bat_priv, const char *fmt, ...)
va_start(args, fmt);
vscnprintf(tmp_log_buf, sizeof(tmp_log_buf), fmt, args);
- fdebug_log(bat_priv->debug_log, "[%10lu] %s",
- (jiffies / HZ), tmp_log_buf);
+ fdebug_log(bat_priv->debug_log, "[%10u] %s",
+ jiffies_to_msecs(jiffies), tmp_log_buf);
va_end(args);
return 0;
OpenPOWER on IntegriCloud