Apply clang-format to commit d26ac60

This commit is contained in:
Marc Di Luzio 2018-04-16 17:46:32 +01:00
parent d9727e9d38
commit 52a99a2102
3 changed files with 8 additions and 8 deletions

View File

@ -145,7 +145,7 @@ void game_mode_context_loop(GameModeContext *context)
} }
LOG_MSG("Successfully initialised bus with name [%s]...\n", "com.feralinteractive.GameMode"); LOG_MSG("Successfully initialised bus with name [%s]...\n", "com.feralinteractive.GameMode");
sd_notifyf(0,"STATUS=%sGameMode is ready to be activated.%s\n", "\x1B[1;36m", "\x1B[0m"); sd_notifyf(0, "STATUS=%sGameMode is ready to be activated.%s\n", "\x1B[1;36m", "\x1B[0m");
/* Now loop, waiting for callbacks */ /* Now loop, waiting for callbacks */
for (;;) { for (;;) {

View File

@ -36,12 +36,12 @@ POSSIBILITY OF SUCH DAMAGE.
#include "governors.h" #include "governors.h"
#include "logging.h" #include "logging.h"
#include <systemd/sd-daemon.h>
#include <linux/limits.h> #include <linux/limits.h>
#include <pthread.h> #include <pthread.h>
#include <signal.h> #include <signal.h>
#include <stdatomic.h> #include <stdatomic.h>
#include <string.h> #include <string.h>
#include <systemd/sd-daemon.h>
/** /**
* The GameModeClient encapsulates the remote connection, providing a list * The GameModeClient encapsulates the remote connection, providing a list
@ -162,7 +162,7 @@ void game_mode_context_destroy(GameModeContext *self)
static void game_mode_context_enter(GameModeContext *self) static void game_mode_context_enter(GameModeContext *self)
{ {
LOG_MSG("Entering Game Mode...\n"); LOG_MSG("Entering Game Mode...\n");
sd_notifyf(0,"STATUS=%sGameMode is now active.%s\n", "\x1B[1;32m", "\x1B[0m"); sd_notifyf(0, "STATUS=%sGameMode is now active.%s\n", "\x1B[1;32m", "\x1B[0m");
if (!self->performance_mode && set_governors("performance")) { if (!self->performance_mode && set_governors("performance")) {
self->performance_mode = true; self->performance_mode = true;
@ -178,7 +178,7 @@ static void game_mode_context_enter(GameModeContext *self)
static void game_mode_context_leave(GameModeContext *self) static void game_mode_context_leave(GameModeContext *self)
{ {
LOG_MSG("Leaving Game Mode...\n"); LOG_MSG("Leaving Game Mode...\n");
sd_notifyf(0,"STATUS=%sGameMode is currently deactivated.%s\n", "\x1B[1;36m", "\x1B[0m"); sd_notifyf(0, "STATUS=%sGameMode is currently deactivated.%s\n", "\x1B[1;36m", "\x1B[0m");
if (self->performance_mode && set_governors(NULL)) { if (self->performance_mode && set_governors(NULL)) {
self->performance_mode = false; self->performance_mode = false;

View File

@ -55,10 +55,10 @@ POSSIBILITY OF SUCH DAMAGE.
#include "gamemode.h" #include "gamemode.h"
#include "logging.h" #include "logging.h"
#include <systemd/sd-daemon.h>
#include <signal.h> #include <signal.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <systemd/sd-daemon.h>
#include <unistd.h> #include <unistd.h>
#define USAGE_TEXT \ #define USAGE_TEXT \
@ -75,7 +75,7 @@ POSSIBILITY OF SUCH DAMAGE.
static void sigint_handler(__attribute__((unused)) int signo) static void sigint_handler(__attribute__((unused)) int signo)
{ {
LOG_MSG("Quitting by request...\n"); LOG_MSG("Quitting by request...\n");
sd_notify(0,"STATUS=GameMode is quitting by request...\n"); sd_notify(0, "STATUS=GameMode is quitting by request...\n");
/* Clean up nicely */ /* Clean up nicely */
game_mode_context_destroy(game_mode_context_instance()); game_mode_context_destroy(game_mode_context_instance());
@ -146,5 +146,5 @@ int main(int argc, char *argv[])
/* Log we're finished */ /* Log we're finished */
LOG_MSG("Quitting naturally...\n"); LOG_MSG("Quitting naturally...\n");
sd_notify(0,"STATUS=GameMode is quitting naturally...\n"); sd_notify(0, "STATUS=GameMode is quitting naturally...\n");
} }