Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/chrome: cros_ec_sensorhub: Add missing '\n' in log messages

Message logged by 'dev_xxx()' or 'pr_xxx()' should end with a '\n'.

Fixes: 145d59baff59 ("platform/chrome: cros_ec_sensorhub: Add FIFO support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>

authored by

Christophe JAILLET and committed by
Enric Balletbo i Serra
538b8471 5b69c237

+3 -3
+3 -3
drivers/platform/chrome/cros_ec_sensorhub_ring.c
··· 820 820 if (fifo_info->count > sensorhub->fifo_size || 821 821 fifo_info->size != sensorhub->fifo_size) { 822 822 dev_warn(sensorhub->dev, 823 - "Mismatch EC data: count %d, size %d - expected %d", 823 + "Mismatch EC data: count %d, size %d - expected %d\n", 824 824 fifo_info->count, fifo_info->size, 825 825 sensorhub->fifo_size); 826 826 goto error; ··· 851 851 } 852 852 if (number_data > fifo_info->count - i) { 853 853 dev_warn(sensorhub->dev, 854 - "Invalid EC data: too many entry received: %d, expected %d", 854 + "Invalid EC data: too many entry received: %d, expected %d\n", 855 855 number_data, fifo_info->count - i); 856 856 break; 857 857 } 858 858 if (out + number_data > 859 859 sensorhub->ring + fifo_info->count) { 860 860 dev_warn(sensorhub->dev, 861 - "Too many samples: %d (%zd data) to %d entries for expected %d entries", 861 + "Too many samples: %d (%zd data) to %d entries for expected %d entries\n", 862 862 i, out - sensorhub->ring, i + number_data, 863 863 fifo_info->count); 864 864 break;