@@ -3416,8 +3416,8 @@ int unit_serialize(Unit *u, FILE *f, FDSet *fds, bool serialize_jobs) {
34163416 (void ) serialize_bool (f , "exported-invocation-id" , u -> exported_invocation_id );
34173417 (void ) serialize_bool (f , "exported-log-level-max" , u -> exported_log_level_max );
34183418 (void ) serialize_bool (f , "exported-log-extra-fields" , u -> exported_log_extra_fields );
3419- (void ) serialize_bool (f , "exported-log-rate-limit-interval" , u -> exported_log_rate_limit_interval );
3420- (void ) serialize_bool (f , "exported-log-rate-limit-burst" , u -> exported_log_rate_limit_burst );
3419+ (void ) serialize_bool (f , "exported-log-rate-limit-interval" , u -> exported_log_ratelimit_interval );
3420+ (void ) serialize_bool (f , "exported-log-rate-limit-burst" , u -> exported_log_ratelimit_burst );
34213421
34223422 (void ) serialize_item_format (f , "cpu-usage-base" , "%" PRIu64 , u -> cpu_usage_base );
34233423 if (u -> cpu_usage_last != NSEC_INFINITY )
@@ -3636,7 +3636,7 @@ int unit_deserialize(Unit *u, FILE *f, FDSet *fds) {
36363636 if (r < 0 )
36373637 log_unit_debug (u , "Failed to parse exported log rate limit interval %s, ignoring." , v );
36383638 else
3639- u -> exported_log_rate_limit_interval = r ;
3639+ u -> exported_log_ratelimit_interval = r ;
36403640
36413641 continue ;
36423642
@@ -3646,7 +3646,7 @@ int unit_deserialize(Unit *u, FILE *f, FDSet *fds) {
36463646 if (r < 0 )
36473647 log_unit_debug (u , "Failed to parse exported log rate limit burst %s, ignoring." , v );
36483648 else
3649- u -> exported_log_rate_limit_burst = r ;
3649+ u -> exported_log_ratelimit_burst = r ;
36503650
36513651 continue ;
36523652
@@ -5504,57 +5504,57 @@ static int unit_export_log_extra_fields(Unit *u, const ExecContext *c) {
55045504 return r ;
55055505}
55065506
5507- static int unit_export_log_rate_limit_interval (Unit * u , const ExecContext * c ) {
5507+ static int unit_export_log_ratelimit_interval (Unit * u , const ExecContext * c ) {
55085508 _cleanup_free_ char * buf = NULL ;
55095509 const char * p ;
55105510 int r ;
55115511
55125512 assert (u );
55135513 assert (c );
55145514
5515- if (u -> exported_log_rate_limit_interval )
5515+ if (u -> exported_log_ratelimit_interval )
55165516 return 0 ;
55175517
5518- if (c -> log_rate_limit_interval_usec == 0 )
5518+ if (c -> log_ratelimit_interval_usec == 0 )
55195519 return 0 ;
55205520
55215521 p = strjoina ("/run/systemd/units/log-rate-limit-interval:" , u -> id );
55225522
5523- if (asprintf (& buf , "%" PRIu64 , c -> log_rate_limit_interval_usec ) < 0 )
5523+ if (asprintf (& buf , "%" PRIu64 , c -> log_ratelimit_interval_usec ) < 0 )
55245524 return log_oom ();
55255525
55265526 r = symlink_atomic (buf , p );
55275527 if (r < 0 )
55285528 return log_unit_debug_errno (u , r , "Failed to create log rate limit interval symlink %s: %m" , p );
55295529
5530- u -> exported_log_rate_limit_interval = true;
5530+ u -> exported_log_ratelimit_interval = true;
55315531 return 0 ;
55325532}
55335533
5534- static int unit_export_log_rate_limit_burst (Unit * u , const ExecContext * c ) {
5534+ static int unit_export_log_ratelimit_burst (Unit * u , const ExecContext * c ) {
55355535 _cleanup_free_ char * buf = NULL ;
55365536 const char * p ;
55375537 int r ;
55385538
55395539 assert (u );
55405540 assert (c );
55415541
5542- if (u -> exported_log_rate_limit_burst )
5542+ if (u -> exported_log_ratelimit_burst )
55435543 return 0 ;
55445544
5545- if (c -> log_rate_limit_burst == 0 )
5545+ if (c -> log_ratelimit_burst == 0 )
55465546 return 0 ;
55475547
55485548 p = strjoina ("/run/systemd/units/log-rate-limit-burst:" , u -> id );
55495549
5550- if (asprintf (& buf , "%u" , c -> log_rate_limit_burst ) < 0 )
5550+ if (asprintf (& buf , "%u" , c -> log_ratelimit_burst ) < 0 )
55515551 return log_oom ();
55525552
55535553 r = symlink_atomic (buf , p );
55545554 if (r < 0 )
55555555 return log_unit_debug_errno (u , r , "Failed to create log rate limit burst symlink %s: %m" , p );
55565556
5557- u -> exported_log_rate_limit_burst = true;
5557+ u -> exported_log_ratelimit_burst = true;
55585558 return 0 ;
55595559}
55605560
@@ -5591,8 +5591,8 @@ void unit_export_state_files(Unit *u) {
55915591 if (c ) {
55925592 (void ) unit_export_log_level_max (u , c );
55935593 (void ) unit_export_log_extra_fields (u , c );
5594- (void ) unit_export_log_rate_limit_interval (u , c );
5595- (void ) unit_export_log_rate_limit_burst (u , c );
5594+ (void ) unit_export_log_ratelimit_interval (u , c );
5595+ (void ) unit_export_log_ratelimit_burst (u , c );
55965596 }
55975597}
55985598
@@ -5630,18 +5630,18 @@ void unit_unlink_state_files(Unit *u) {
56305630 u -> exported_log_extra_fields = false;
56315631 }
56325632
5633- if (u -> exported_log_rate_limit_interval ) {
5633+ if (u -> exported_log_ratelimit_interval ) {
56345634 p = strjoina ("/run/systemd/units/log-rate-limit-interval:" , u -> id );
56355635 (void ) unlink (p );
56365636
5637- u -> exported_log_rate_limit_interval = false;
5637+ u -> exported_log_ratelimit_interval = false;
56385638 }
56395639
5640- if (u -> exported_log_rate_limit_burst ) {
5640+ if (u -> exported_log_ratelimit_burst ) {
56415641 p = strjoina ("/run/systemd/units/log-rate-limit-burst:" , u -> id );
56425642 (void ) unlink (p );
56435643
5644- u -> exported_log_rate_limit_burst = false;
5644+ u -> exported_log_ratelimit_burst = false;
56455645 }
56465646}
56475647
0 commit comments