antirollback: add missing newline and change E2BIG->EPERM.
E2BIG is defined as "Argument list too long" which isn't really accurate.
EPERM is "operation not permitted" which is somewhat more accurate for a
security-related rejection. EINVAL would also probably be a reasonable
option (and is used for some other reasons the setting might be rejected).
Change-Id: I93f35378e7020baf1f98dff72dcac69658c0d89c
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
index 32d95c24..2f8ea3e 100644
--- a/kernel/time/timekeeping.c
+++ b/kernel/time/timekeeping.c
@@ -376,9 +376,10 @@
#define MAX_DELTA (30*60)
long ar_clock = get_antirollback_clock();
if (ar_clock != 0 && tv->tv_sec < (ar_clock - MAX_DELTA)) {
- printk(KERN_ERR "rejecting settimeofday %lu < antirollback %lu",
+ printk(KERN_ERR "rejecting settimeofday %lu < "
+ "antirollback %lu\n",
tv->tv_sec, ar_clock);
- return -E2BIG;
+ return -EPERM;
}
#endif