Pārlūkot izejas kodu

Fix incorrect printf usage of uint64_t's

Fredrik Svantesson 6 gadus atpakaļ
vecāks
revīzija
3ed29dfa7c
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3
    3
      src/light.c

+ 3
- 3
src/light.c Parādīt failu

@@ -697,7 +697,7 @@ bool light_cmd_get_brightness(light_context_t *ctx)
697 697
     
698 698
     if(ctx->run_params.raw_mode)
699 699
     {
700
-        printf(PRIu64 "\n", value);
700
+        printf("%" PRIu64 "\n", value);
701 701
     }
702 702
     else 
703 703
     {
@@ -735,7 +735,7 @@ bool light_cmd_get_max_brightness(light_context_t *ctx)
735 735
         return false;
736 736
     }
737 737
     
738
-    printf(PRIu64 "\n", max_value);
738
+    printf("%" PRIu64 "\n", max_value);
739 739
     return true;
740 740
 }
741 741
 
@@ -786,7 +786,7 @@ bool light_cmd_get_min_brightness(light_context_t *ctx)
786 786
     
787 787
     if(ctx->run_params.raw_mode)
788 788
     {
789
-        printf(PRIu64 "\n", minimum_value);
789
+        printf("%" PRIu64 "\n", minimum_value);
790 790
     }
791 791
     else 
792 792
     {