summaryrefslogtreecommitdiffstats
path: root/src/udev/dmi_memory_id
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-12-18 04:59:29 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-12-18 04:59:29 +0100
commit458610429f077db352768ca6106a1ffad9c7673d (patch)
tree9b58eecc58203feda4d2029cefe4dc51116df269 /src/udev/dmi_memory_id
parentnetwork: Allow to configure unreachable/blackhole RoutingPolicyRule (#17984) (diff)
downloadsystemd-458610429f077db352768ca6106a1ffad9c7673d.tar.xz
systemd-458610429f077db352768ca6106a1ffad9c7673d.zip
tree-wide: fix typo
Diffstat (limited to 'src/udev/dmi_memory_id')
-rw-r--r--src/udev/dmi_memory_id/dmi_memory_id.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/dmi_memory_id/dmi_memory_id.c b/src/udev/dmi_memory_id/dmi_memory_id.c
index dfb243483c..5529daa602 100644
--- a/src/udev/dmi_memory_id/dmi_memory_id.c
+++ b/src/udev/dmi_memory_id/dmi_memory_id.c
@@ -572,7 +572,7 @@ static int dmi_table(int64_t base, uint32_t len, uint16_t num, const char *devme
/*
* When reading from sysfs or from a dump file, the file may be
- * shorter than announced. For SMBIOS v3 this is expcted, as we
+ * shorter than announced. For SMBIOS v3 this is expected, as we
* only know the maximum table size, not the actual table size.
* For older implementations (and for SMBIOS v3 too), this
* would be the result of the kernel truncating the table on
@@ -599,7 +599,7 @@ static int smbios3_decode(const uint8_t *buf, const char *devmem, bool no_file_o
buf[0x06], 0x18U);
if (!verify_checksum(buf, buf[0x06]))
- return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Faied to verify checksum.");
+ return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Failed to verify checksum.");
offset = QWORD(buf + 0x10);
if (!no_file_offset && (offset >> 32) != 0 && sizeof(int64_t) < 8)