diff --git a/samples/subsys/logging/dictionary/src/main.c b/samples/subsys/logging/dictionary/src/main.c index 11c12115cc587f..b1e03b9253a565 100644 --- a/samples/subsys/logging/dictionary/src/main.c +++ b/samples/subsys/logging/dictionary/src/main.c @@ -65,7 +65,7 @@ int main(void) LOG_DBG("float %f, double %f", (double)f, d); #ifdef CONFIG_CBPRINTF_PACKAGE_LONGDOUBLE - long double ld = 70.71; + long double ld = 70.71L; LOG_DBG("long double %Lf", ld); #endif