From cb3436b42eecdb0a058ed565709804292b80469b Mon Sep 17 00:00:00 2001 From: Gehad Date: Sat, 5 Apr 2014 13:01:34 -0700 Subject: Use helper function to write decimal numbers Never ever use '%f' to write floating point data to a file. The stupid locale handling creates useless comma-infested output in some locales. Instead use one of our clever helper functions to do the right thing. Original patch by Gehad, modified by Linus to be a little more generic. Signed-off-by: Gehad elrobey Signed-off-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- membuffer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'membuffer.h') diff --git a/membuffer.h b/membuffer.h index 4386b1e11..ee0305eee 100644 --- a/membuffer.h +++ b/membuffer.h @@ -56,6 +56,7 @@ extern void put_depth(struct membuffer *, depth_t, const char *, const char *); extern void put_duration(struct membuffer *, duration_t, const char *, const char *); extern void put_pressure(struct membuffer *, pressure_t, const char *, const char *); extern void put_salinity(struct membuffer *, int, const char *, const char *); +extern void put_degrees(struct membuffer *b, degrees_t value, const char *, const char *); #ifdef __cplusplus } -- cgit v1.2.3-70-g09d2