vlog: Array intialization for Windows.
authorGurucharan Shetty <gshetty@nicira.com>
Mon, 10 Mar 2014 15:39:44 +0000 (08:39 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Wed, 12 Mar 2014 03:28:13 +0000 (20:28 -0700)
Visual studio does not understand array initialization
done this way:
[first ... last] = value

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/vlog.h

index 226b7f8..0f791af 100644 (file)
@@ -269,7 +269,7 @@ void vlog_usage(void);
         {                                                               \
             LIST_INITIALIZER(&VLM_##MODULE.list),                       \
             #MODULE,                                        /* name */  \
-            { [ 0 ... VLF_N_FACILITIES - 1] = VLL_INFO }, /* levels */  \
+            { VLL_INFO, VLL_INFO, VLL_INFO },             /* levels */  \
             VLL_INFO,                                  /* min_level */  \
             true                               /* honor_rate_limits */  \
         };