On Wed, 7 Jun 2017 13:42:26 +0000 Jean-Baptiste Maneyrol <JManeyrol@xxxxxxxxxxxxxx> wrote: > Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@xxxxxxxxxxxxxx> Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Jonathan > --- > drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c > index 37fb18f..64af12c 100644 > --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c > +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c > @@ -684,7 +684,8 @@ static ssize_t inv_attr_show(struct device *dev, struct device_attribute *attr, > case ATTR_ACCL_MATRIX: > m = st->plat_data.orientation; > > - return sprintf(buf, "%d, %d, %d; %d, %d, %d; %d, %d, %d\n", > + return scnprintf(buf, PAGE_SIZE, > + "%d, %d, %d; %d, %d, %d; %d, %d, %d\n", > m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8]); > default: > return -EINVAL; -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html