commit b8075b425ef330367e2d04bdb2cd9a272c01248c
parent e8035127f493c1f1535bc802ba7ce9e3551ef708
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 21 Apr 2020 16:28:16 +0200
Small update of several log messages
Ensure that the first letter of the message is upper case.
Diffstat:
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/src/htsky.c b/src/htsky.c
@@ -72,7 +72,7 @@ setup_bands_properties(struct htsky* sky)
sky->bands = MEM_CALLOC(sky->allocator, nbands, sizeof(*sky->bands));
if(!sky->bands) {
- log_err(sky, "could not allocate the list of %s band properties.\n",
+ log_err(sky, "Could not allocate the list of %s band properties.\n",
sky->is_long_wave ? "long wave" : "short wave");
res = RES_MEM_ERR;
goto error;
@@ -275,7 +275,7 @@ setup_cache_stream
}
if(fd < 0) {
- log_err(sky, "unexpected error while opening the cache file `%s'.\n",
+ log_err(sky, "Unexpected error while opening the cache file `%s'.\n",
cache_filename);
res = RES_IO_ERR;
goto error;
@@ -283,7 +283,7 @@ setup_cache_stream
fp = fdopen(fd, "w+");
if(!fp) {
- log_err(sky, "could not open the cache file `%s'.\n", cache_filename);
+ log_err(sky, "Could not open the cache file `%s'.\n", cache_filename);
res = RES_IO_ERR;
goto error;
}
@@ -533,14 +533,14 @@ htsky_create
res = str_set(&sky->name, args->name);
if(res != RES_OK) {
- log_err(sky, "cannot setup the material name to `%s'.\n", args->name);
+ log_err(sky, "Cannot setup the material name to `%s'.\n", args->name);
goto error;
}
/* Setup an allocator specific to the SVX library */
res = mem_init_proxy_allocator(&sky->svx_allocator, sky->allocator);
if(res != RES_OK) {
- log_err(sky, "cannot init the allocator used to manage the Star-VX data.\n");
+ log_err(sky, "Cannot init the allocator used to manage the Star-VX data.\n");
goto error;
}
@@ -548,19 +548,19 @@ htsky_create
res = svx_device_create
(sky->logger, &sky->svx_allocator, sky->verbose, &sky->svx);
if(res != RES_OK) {
- log_err(sky, "error creating the Star-VX library device.\n");
+ log_err(sky, "Error creating the Star-VX library device.\n");
goto error;
}
/* Load the gas optical properties */
res = htgop_create(sky->logger, sky->allocator, sky->verbose, &sky->htgop);
if(res != RES_OK) {
- log_err(sky, "could not create the gas optical properties loader.\n");
+ log_err(sky, "Could not create the gas optical properties loader.\n");
goto error;
}
res = htgop_load(sky->htgop, args->htgop_filename);
if(res != RES_OK) {
- log_err(sky, "error loading the gas optical properties -- `%s'.\n",
+ log_err(sky, "Error loading the gas optical properties -- `%s'.\n",
args->htgop_filename);
goto error;
}
@@ -589,19 +589,19 @@ htsky_create
if(res != RES_OK) goto error;
time_sub(&t0, time_current(&t1), &t0);
time_dump(&t0, TIME_ALL, NULL, buf, sizeof(buf));
- log_info(sky, "setup atmosphere in %s\n", buf);
+ log_info(sky, "Setup atmosphere in %s\n", buf);
/* Nothing more to do */
if(!sky->is_cloudy) goto exit;
if(!args->htmie_filename) {
- log_err(sky, "missing the HTMie filename.\n");
+ log_err(sky, "Missing the HTMie filename.\n");
res = RES_BAD_ARG;
goto error;
}
if(!args->htcp_filename) {
- log_err(sky, "missing the HTCP filename.\n");
+ log_err(sky, "Missing the HTCP filename.\n");
res = RES_BAD_ARG;
goto error;
}
@@ -609,12 +609,12 @@ htsky_create
/* Load MIE data */
res = htmie_create(sky->logger, sky->allocator, sky->verbose, &sky->htmie);
if(res != RES_OK) {
- log_err(sky, "could not create the Mie's data loader.\n");
+ log_err(sky, "Could not create the Mie's data loader.\n");
goto error;
}
res = htmie_load(sky->htmie, args->htmie_filename);
if(res != RES_OK) {
- log_err(sky, "error loading the Mie's data -- `%s'.\n", args->htmie_filename);
+ log_err(sky, "Error loading the Mie's data -- `%s'.\n", args->htmie_filename);
goto error;
}
@@ -625,12 +625,12 @@ htsky_create
/* Load clouds properties */
res = htcp_create(sky->logger, sky->allocator, sky->verbose, &sky->htcp);
if(res != RES_OK) {
- log_err(sky, "could not create the loader of cloud properties.\n");
+ log_err(sky, "Could not create the loader of cloud properties.\n");
goto error;
}
res = htcp_load(sky->htcp, args->htcp_filename);
if(res != RES_OK) {
- log_err(sky, "error loading the cloud properties -- `%s'.\n",
+ log_err(sky, "Error loading the cloud properties -- `%s'.\n",
args->htcp_filename);
goto error;
}
@@ -647,7 +647,7 @@ htsky_create
if(res != RES_OK) goto error;
time_sub(&t0, time_current(&t1), &t0);
time_dump(&t0, TIME_ALL, NULL, buf, sizeof(buf));
- log_info(sky, "setup clouds in %s\n", buf);
+ log_info(sky, "Setup clouds in %s\n", buf);
if(sky->verbose) {
log_svx_memory_usage(sky);