@@ -105,9 +105,7 @@ GglError ggconfig_open(void) {
105105 );
106106 if (rc ) {
107107 GGL_LOGI (
108- "Failed to add an index to the relationTable %s, "
109- "expect an "
110- "autoindex to be created" ,
108+ "Failed to add an index to the relationTable %s, expect an autoindex to be created" ,
111109 err_message
112110 );
113111 sqlite3_free (err_message );
@@ -537,8 +535,8 @@ static GglError create_key_path(GglList *key_path, GglObjVec *key_ids_output) {
537535 err = value_is_present_for_key (current_key_id , & value_is_present );
538536 if (err != GGL_ERR_OK ) {
539537 GGL_LOGE (
540- "failed to check for value for key %d (%.*s) in key path "
541- "%s with id %" PRId64 " with error %s" ,
538+ "failed to check for value for key %d (%.*s) in key path %s with id %" PRId64
539+ " with error %s" ,
542540 (int ) index ,
543541 (int ) current_key_buffer .len ,
544542 current_key_buffer .data ,
@@ -550,8 +548,8 @@ static GglError create_key_path(GglList *key_path, GglObjVec *key_ids_output) {
550548 }
551549 if (value_is_present ) {
552550 GGL_LOGW (
553- "value already present for key %d (%.*s) in key path %s "
554- "with id %" PRId64 " . Failing request." ,
551+ "value already present for key %d (%.*s) in key path %s with id %" PRId64
552+ ". Failing request." ,
555553 (int ) index ,
556554 (int ) current_key_buffer .len ,
557555 current_key_buffer .data ,
@@ -633,8 +631,8 @@ static GglError notify_single_key(
633631 } break ;
634632 default :
635633 GGL_LOGE (
636- "Unexpected rc %d while getting handles to notify for key with "
637- "id %" PRId64 " with error: %s" ,
634+ "Unexpected rc %d while getting handles to notify for key with id %" PRId64
635+ " with error: %s" ,
638636 rc ,
639637 notify_key_id ,
640638 sqlite3_errmsg (config_database )
@@ -758,8 +756,7 @@ GglError ggconfig_write_value_at_key(
758756 err = notify_nested_key (key_path , ids );
759757 if (err != GGL_ERR_OK ) {
760758 GGL_LOGE (
761- "Failed to notify all subscribers about update for key path %s "
762- "with error %s" ,
759+ "Failed to notify all subscribers about update for key path %s with error %s" ,
763760 print_key_path (key_path ),
764761 ggl_strerror (err )
765762 );
@@ -792,8 +789,7 @@ GglError ggconfig_write_value_at_key(
792789 if (child_is_present ) {
793790 GGL_LOGW (
794791 "Key %s with id %" PRId64
795- " is an object with one or more children, so "
796- "it can not also store a value. Failing request." ,
792+ " is an object with one or more children, so it can not also store a value. Failing request." ,
797793 print_key_path (key_path ),
798794 last_key_id
799795 );
@@ -809,8 +805,8 @@ GglError ggconfig_write_value_at_key(
809805 }
810806 if (!value_is_present ) {
811807 GGL_LOGW (
812- "Key %s with id %" PRId64 " is an empty map, so it can not have a "
813- "value written to it. Failing request." ,
808+ "Key %s with id %" PRId64
809+ " is an empty map, so it can not have a value written to it. Failing request." ,
814810 print_key_path (key_path ),
815811 last_key_id
816812 );
@@ -833,8 +829,9 @@ GglError ggconfig_write_value_at_key(
833829 }
834830 if (existing_timestamp > timestamp ) {
835831 GGL_LOGD (
836- "key %s has an existing timestamp %" PRId64 " newer than provided "
837- "timestamp %" PRId64 ", so it will not be updated" ,
832+ "key %s has an existing timestamp %" PRId64
833+ " newer than provided timestamp %" PRId64
834+ ", so it will not be updated" ,
838835 print_key_path (key_path ),
839836 existing_timestamp ,
840837 timestamp
@@ -860,8 +857,7 @@ GglError ggconfig_write_value_at_key(
860857 err = notify_nested_key (key_path , ids );
861858 if (err != GGL_ERR_OK ) {
862859 GGL_LOGE (
863- "failed to notify subscribers about update for key path %s with "
864- "error %s" ,
860+ "failed to notify subscribers about update for key path %s with error %s" ,
865861 print_key_path (key_path ),
866862 ggl_strerror (err )
867863 );
@@ -1144,8 +1140,7 @@ GglError ggconfig_list_subkeys(GglList *key_path, GglList *subkeys) {
11441140 }
11451141 if (value_is_present ) {
11461142 GGL_LOGW (
1147- "Key %s is a value, not a map, so subkeys/children can not be "
1148- "listed." ,
1143+ "Key %s is a value, not a map, so subkeys/children can not be listed." ,
11491144 print_key_path (key_path )
11501145 );
11511146 sqlite3_exec (config_database , "END TRANSACTION" , NULL , NULL , NULL );
@@ -1336,10 +1331,7 @@ GglError ggconfig_delete_key(GglList *key_path) {
13361331 if (err != GGL_ERR_OK ) {
13371332 GGL_LOGE (
13381333 "Failed to delete subscribers for id %" PRId64
1339- " with error %s. This should not happen, but keyids are not "
1340- "reused and thus "
1341- "any subscriptions on this key will not be activated anymore, "
1342- "so execution can continue." ,
1334+ " with error %s. This should not happen, but keyids are not reused and thus any subscriptions on this key will not be activated anymore, so execution can continue." ,
13431335 descendant_id ,
13441336 ggl_strerror (err )
13451337 );
0 commit comments