Correct a number of trivial typos.
This commit is contained in:
parent
4f03608b51
commit
3fe910794b
|
@ -1482,7 +1482,7 @@ static int method_switch_root(sd_bus_message *message, void *userdata, sd_bus_er
|
|||
|
||||
if (available < RELOAD_DISK_SPACE_MIN) {
|
||||
char fb_available[FORMAT_BYTES_MAX], fb_need[FORMAT_BYTES_MAX];
|
||||
log_warning("Dangerously low amount of free space on /run/systemd, root switching operation might not complete successfuly. "
|
||||
log_warning("Dangerously low amount of free space on /run/systemd, root switching operation might not complete successfully. "
|
||||
"Currently, %s are free, but %s are suggested. Proceeding anyway.",
|
||||
format_bytes(fb_available, sizeof(fb_available), available),
|
||||
format_bytes(fb_need, sizeof(fb_need), RELOAD_DISK_SPACE_MIN));
|
||||
|
|
|
@ -4841,7 +4841,7 @@ int exec_runtime_deserialize_compat(Unit *u, const char *key, const char *value,
|
|||
if (rt_create) {
|
||||
r = hashmap_put(u->manager->exec_runtime_by_id, rt_create->id, rt_create);
|
||||
if (r < 0) {
|
||||
log_unit_debug_errno(u, r, "Failed to put runtime paramter to manager's storage: %m");
|
||||
log_unit_debug_errno(u, r, "Failed to put runtime parameter to manager's storage: %m");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -1641,7 +1641,7 @@ static int invoke_main_loop(
|
|||
|
||||
log_info("Reloading.");
|
||||
|
||||
/* First, save any overriden log level/target, then parse the configuration file, which might
|
||||
/* First, save any overridden log level/target, then parse the configuration file, which might
|
||||
* change the log level to new settings. */
|
||||
|
||||
saved_log_level = m->log_level_overridden ? log_get_max_level() : -1;
|
||||
|
|
|
@ -67,7 +67,7 @@ typedef struct MountEntry {
|
|||
} MountEntry;
|
||||
|
||||
/* If MountAPIVFS= is used, let's mount /sys and /proc into the it, but only as a fallback if the user hasn't mounted
|
||||
* something there already. These mounts are hence overriden by any other explicitly configured mounts. */
|
||||
* something there already. These mounts are hence overridden by any other explicitly configured mounts. */
|
||||
static const MountEntry apivfs_table[] = {
|
||||
{ "/proc", PROCFS, false },
|
||||
{ "/dev", BIND_DEV, false },
|
||||
|
|
|
@ -5419,7 +5419,7 @@ int unit_pid_attachable(Unit *u, pid_t pid, sd_bus_error *error) {
|
|||
|
||||
/* Some extra safety check */
|
||||
if (pid == 1 || pid == getpid_cached())
|
||||
return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Process " PID_FMT " is a manager processs, refusing.", pid);
|
||||
return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Process " PID_FMT " is a manager process, refusing.", pid);
|
||||
|
||||
/* Don't even begin to bother with kernel threads */
|
||||
r = is_kernel_thread(pid);
|
||||
|
|
|
@ -132,7 +132,7 @@ static void test_compress_decompress(const char* label, const char* type,
|
|||
dt = (n2-n) / 1e6;
|
||||
|
||||
log_info("%s/%s: compressed & decompressed %zu bytes in %.2fs (%.2fMiB/s), "
|
||||
"mean compresion %.2f%%, skipped %zu bytes",
|
||||
"mean compression %.2f%%, skipped %zu bytes",
|
||||
label, type, total, dt,
|
||||
total / 1024. / 1024 / dt,
|
||||
100 - compressed * 100. / total,
|
||||
|
|
|
@ -276,7 +276,7 @@ static int radv_recv(sd_event_source *s, int fd, uint32_t revents, void *userdat
|
|||
|
||||
r = radv_send(ra, &src, ra->lifetime);
|
||||
if (r < 0)
|
||||
log_radv_warning_errno(r, "Unable to send solicited Router Advertisment to %s: %m", addr);
|
||||
log_radv_warning_errno(r, "Unable to send solicited Router Advertisement to %s: %m", addr);
|
||||
else
|
||||
log_radv("Sent solicited Router Advertisement to %s", addr);
|
||||
|
||||
|
|
|
@ -188,7 +188,7 @@ static void test_basic(void) {
|
|||
|
||||
got_a = false, got_b = false, got_c = false, got_d = 0;
|
||||
|
||||
/* Add a oneshot handler, trigger it, re-enable it, and trigger
|
||||
/* Add a oneshot handler, trigger it, reenable it, and trigger
|
||||
* it again. */
|
||||
assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
|
||||
assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
|
||||
|
|
|
@ -194,7 +194,7 @@ int config_parse_address_label(
|
|||
}
|
||||
|
||||
if (k == 0xffffffffUL) {
|
||||
log_syntax(unit, LOG_ERR, filename, line, r, "Adress label is invalid, ignoring: %s", rvalue);
|
||||
log_syntax(unit, LOG_ERR, filename, line, r, "Address label is invalid, ignoring: %s", rvalue);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -766,7 +766,7 @@ int manager_rtnl_process_rule(sd_netlink *rtnl, sd_netlink_message *message, voi
|
|||
} else if (r >= 0) {
|
||||
r = sd_rtnl_message_routing_policy_rule_get_rtm_src_prefixlen(message, &from_prefixlen);
|
||||
if (r < 0) {
|
||||
log_warning_errno(r, "rtnl: failed to retrive rule from prefix length, ignoring: %m");
|
||||
log_warning_errno(r, "rtnl: failed to retrieve rule from prefix length, ignoring: %m");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -778,7 +778,7 @@ int manager_rtnl_process_rule(sd_netlink *rtnl, sd_netlink_message *message, voi
|
|||
} else if (r >= 0) {
|
||||
r = sd_rtnl_message_routing_policy_rule_get_rtm_dst_prefixlen(message, &to_prefixlen);
|
||||
if (r < 0) {
|
||||
log_warning_errno(r, "rtnl: failed to retrive rule to prefix length, ignoring: %m");
|
||||
log_warning_errno(r, "rtnl: failed to retrieve rule to prefix length, ignoring: %m");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -793,7 +793,7 @@ int manager_rtnl_process_rule(sd_netlink *rtnl, sd_netlink_message *message, voi
|
|||
} else if (r >= 0) {
|
||||
r = sd_rtnl_message_routing_policy_rule_get_rtm_src_prefixlen(message, &from_prefixlen);
|
||||
if (r < 0) {
|
||||
log_warning_errno(r, "rtnl: failed to retrive rule from prefix length, ignoring: %m");
|
||||
log_warning_errno(r, "rtnl: failed to retrieve rule from prefix length, ignoring: %m");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -805,7 +805,7 @@ int manager_rtnl_process_rule(sd_netlink *rtnl, sd_netlink_message *message, voi
|
|||
} else if (r >= 0) {
|
||||
r = sd_rtnl_message_routing_policy_rule_get_rtm_dst_prefixlen(message, &to_prefixlen);
|
||||
if (r < 0) {
|
||||
log_warning_errno(r, "rtnl: failed to retrive rule to prefix length, ignoring: %m");
|
||||
log_warning_errno(r, "rtnl: failed to retrieve rule to prefix length, ignoring: %m");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -500,7 +500,7 @@ int image_from_path(const char *path, Image **ret) {
|
|||
|
||||
/* Note that we don't set the 'discoverable' field of the returned object, because we don't check here whether
|
||||
* the image is in the image search path. And if it is we don't know if the path we used is actually not
|
||||
* overriden by another, different image earlier in the search path */
|
||||
* overridden by another, different image earlier in the search path */
|
||||
|
||||
if (path_equal(path, "/"))
|
||||
return image_make(".host", AT_FDCWD, NULL, "/", NULL, ret);
|
||||
|
|
|
@ -43,9 +43,9 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
|
|||
*/
|
||||
|
||||
if (streq(key, "systemd.unit") && !proc_cmdline_value_missing(key, value))
|
||||
log_warning("Offline system update overriden by kernel command line systemd.unit= setting");
|
||||
log_warning("Offline system update overridden by kernel command line systemd.unit= setting");
|
||||
else if (!value && runlevel_to_target(key))
|
||||
log_warning("Offline system update overriden by runlevel \"%s\" on the kernel command line", key);
|
||||
log_warning("Offline system update overridden by runlevel \"%s\" on the kernel command line", key);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ _SD_BEGIN_DECLARATIONS;
|
|||
typedef struct sd_radv sd_radv;
|
||||
typedef struct sd_radv_prefix sd_radv_prefix;
|
||||
|
||||
/* Router Advertisment */
|
||||
/* Router Advertisement */
|
||||
int sd_radv_new(sd_radv **ret);
|
||||
sd_radv *sd_radv_ref(sd_radv *ra);
|
||||
sd_radv *sd_radv_unref(sd_radv *ra);
|
||||
|
|
|
@ -16,7 +16,7 @@ int main(int argc, char *argv[]) {
|
|||
log_open();
|
||||
|
||||
assert_se(procfs_cpu_get_usage(&nsec) >= 0);
|
||||
log_info("Current sytem CPU time: %s", format_timespan(buf, sizeof(buf), nsec/NSEC_PER_USEC, 1));
|
||||
log_info("Current system CPU time: %s", format_timespan(buf, sizeof(buf), nsec/NSEC_PER_USEC, 1));
|
||||
|
||||
assert_se(procfs_memory_get_current(&v) >= 0);
|
||||
log_info("Current memory usage: %s", format_bytes(buf, sizeof(buf), v));
|
||||
|
|
Loading…
Reference in New Issue