Merge branch 'for-3.1' of git://linux-nfs.org/~bfields/linux
[firefly-linux-kernel-4.4.55.git] / net / mac80211 / debugfs_sta.c
index c008232731eb0eb03043905fa30ef4cf66fe766d..a01d2137fddca33f11bc89bda319c5d00937b98d 100644 (file)
@@ -108,7 +108,7 @@ static ssize_t sta_connected_time_read(struct file *file, char __user *userbuf,
        result.tm_year -= 70;
        result.tm_mday -= 1;
        res = scnprintf(buf, sizeof(buf),
-               "years  - %d\nmonths - %d\ndays   - %d\nclock  - %d:%d:%d\n\n",
+               "years  - %ld\nmonths - %d\ndays   - %d\nclock  - %d:%d:%d\n\n",
                        result.tm_year, result.tm_mon, result.tm_mday,
                        result.tm_hour, result.tm_min, result.tm_sec);
        return simple_read_from_buffer(userbuf, count, ppos, buf, res);