Skip to content

Commit a64101a

Browse files
committed
Fix grammar on logs and comments
1 parent e0406b0 commit a64101a

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

src/apps.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
/**
2828
@file apps.h
29-
@brief Functions and structures for managing processes and applications defined in an ini config file.
29+
@brief Functions and structures for managing processes and applications defined in an INI config file.
3030
*/
3131

3232
// Constants

src/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ static int config_ini_handler(void *user, const char *section, const char *name,
217217

218218
if(strlen(value) >= MAX_APP_CMD_LENGTH)
219219
{
220-
LOGE("Invalid cmd for app %s - longer than %d charachters", apps[index].name, MAX_APP_CMD_LENGTH);
220+
LOGE("Invalid cmd for app %s - longer than %d characters", apps[index].name, MAX_APP_CMD_LENGTH);
221221
return 0;
222222
}
223223
}

src/filecmd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#define FILECMD_REBOOT "wdtreboot" /**< Command to stop all apps and reboot the OS. */
3737

3838
/**
39-
@brief File commands for controlling application lifecycle based on an application's name specified in the ini file:
39+
@brief File commands for controlling the application lifecycle based on an application's name specified in the INI file:
4040
4141
@example for an application called "bot" or "Bot"
4242
- stopbot: Stops the application named "bot". It does not restart the application automatically. When the corresponding file is removed, the "bot" application will be started again.

src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ void usage(char *progname, int opt)
197197
void help(char *progname)
198198
{
199199
fprintf(stderr, GREEN "\nBrief:\n" RESET);
200-
fprintf(stderr, "%s starts the applications given in the ini "
200+
fprintf(stderr, "%s starts the applications given in the INI "
201201
"file in the same directory\n", progname);
202202
fprintf(stderr, "Restarts them when they crash or exit\n");
203-
fprintf(stderr, "The applications must send their pid numbers "
204-
"periodically to the UDP port in the ini file "
203+
fprintf(stderr, "The applications must send their PID numbers "
204+
"periodically to the UDP port in the INI file "
205205
"as a string command p<pid>, "
206206
"otherwise the %s will restart them.\n", progname);
207207
fprintf(stderr, GREEN "\nFile commands:\n" RESET

src/process.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ bool process_is_running(int app_index)
4646
}
4747
else if(errno == EPERM)
4848
{
49-
LOGE("No permission to check if process %s is running : %s", get_app_name(app_index), strerror(errno));
49+
LOGE("No permission to check if process %s is running: %s", get_app_name(app_index), strerror(errno));
5050
return true;
5151
}
5252
else

src/server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int udp_start(int *socketfd, int port)
4242

4343
if(*socketfd == -1)
4444
{
45-
LOGE("socket could not create");
45+
LOGE("socket could not be created");
4646
return 1;
4747
}
4848

src/stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ static void resetStatisticsFile(int index, const char *app_name)
378378
{
379379
if(stats[index].magic != STATS_MAGIC)
380380
{
381-
LOGN("Statistic file %s has been reset - magic %X is %X", app_name, stats[index].magic, STATS_MAGIC);
381+
LOGN("Statistics file %s has been reset - magic %X is %X", app_name, stats[index].magic, STATS_MAGIC);
382382
memset(&stats[index], 0, sizeof(Statistic_t));
383383
stats[index].magic = STATS_MAGIC;
384384
}

src/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ typedef uint64_t clk_t;
7979
/* functions */
8080

8181
/**
82-
@brief Copies a string with pointer of end position.
82+
@brief Copies a string with a pointer to the end position.
8383
8484
@param s1 Destination string.
8585
@param s2 Source string.

0 commit comments

Comments
 (0)