Skip to content

Commit

Permalink
Align defines in clang-format for Balloon driver
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Chulak <[email protected]>
  • Loading branch information
Jedoku authored and kostyanf14 committed Dec 6, 2024
1 parent 22b32fe commit f956302
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Language: Cpp

AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AcrossEmptyLines: true
AcrossComments: true
AlignCompound: false
AlignFunctionPointers: false
PadOperators: false
Expand Down
2 changes: 1 addition & 1 deletion Balloon/sys/ProtoTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "trace.h"

/* The ID for virtio_balloon */
#define VIRTIO_ID_BALLOON 5
#define VIRTIO_ID_BALLOON 5

/* The feature bitmap for virtio balloon */
#define VIRTIO_BALLOON_F_MUST_TELL_HOST 0 /* Tell before reclaiming pages */
Expand Down
4 changes: 2 additions & 2 deletions Balloon/sys/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ extern int driverDebugLevel;
WPP_DEFINE_BIT(DBG_HW_ACCESS) /* bit 12 = 0x00001000 */ \
)

#define WPP_FLAG_LEVEL_LOGGER(flag, level) WPP_LEVEL_LOGGER(flag)
#define WPP_FLAG_LEVEL_LOGGER(flag, level) WPP_LEVEL_LOGGER(flag)

#define WPP_FLAG_LEVEL_ENABLED(flag, level) (WPP_LEVEL_ENABLED(flag) && WPP_CONTROL(WPP_BIT_##flag).Level >= level)

#define WPP_LEVEL_FLAGS_LOGGER(lvl, flags) WPP_LEVEL_LOGGER(flags)
#define WPP_LEVEL_FLAGS_LOGGER(lvl, flags) WPP_LEVEL_LOGGER(flags)

#define WPP_LEVEL_FLAGS_ENABLED(lvl, flags) (WPP_LEVEL_ENABLED(flags) && WPP_CONTROL(WPP_BIT_##flags).Level >= lvl)

Expand Down

0 comments on commit f956302

Please sign in to comment.