Skip to content

Commit

Permalink
log: fix various typos
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Klotzbuecher <mk@mkio.de>
  • Loading branch information
kmarkus committed Sep 8, 2020
1 parent 28a00b9 commit 320bfdd
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion libubx/ubx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,7 @@ int ubx_config_add2(ubx_block_t *b,
type = ubx_type_get(b->nd, type_name);

if (type == NULL) {
ubx_err(b, "config_add: unkown type %s", type_name);
ubx_err(b, "config_add: unknown type %s", type_name);
return EINVALID_TYPE;
}

Expand Down
2 changes: 1 addition & 1 deletion lua/cdata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function M.gen_logfun(ctype, prefix)
if e.value == 'number' then e.serfun = "format_num"
elseif e.value == 'string' then e.serfun = "ffi.string"
else
error("unkown value "..e.value.." for key "..e.key)
error("unknown value "..e.value.." for key "..e.key)
end
end, flattab)

Expand Down
4 changes: 2 additions & 2 deletions lua/ubx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ function M.__data_alloc(typ, num)
num = num or 1
local d = ubx.__ubx_data_alloc(typ, num)
if d==nil then
error("data_alloc: unkown type '"..M.safe_tostr(typ.name).."'")
error("data_alloc: unknown type '"..M.safe_tostr(typ.name).."'")
end
ffi.gc(d, function(dat) ubx.ubx_data_free(dat) end)
return d
Expand All @@ -741,7 +741,7 @@ end
function M.data_alloc(nd, type_name, num)
local t = M.type_get(nd, type_name)
if t==nil then
error(M.safe_tostr(nd.name)..": data_alloc: unkown type '"..M.safe_tostr(type_name).."'")
error(M.safe_tostr(nd.name)..": data_alloc: unknown type '"..M.safe_tostr(type_name).."'")
end
return M.__data_alloc(t, num)
end
Expand Down
8 changes: 4 additions & 4 deletions lua/umf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ function TableSpec.check(self, obj, vres)
ret=false
else
log("check_array_entry: OUT #"..ts(i).." FAILED! (but unsealed)")
add_msg(vres, "inf", "unkown entry '"..tostring(entry) .."' in array part")
add_msg(vres, "inf", "unknown entry '"..tostring(entry) .."' in array part")
end
ind_dec()
vres_pop_context(vres, depth)
Expand All @@ -369,14 +369,14 @@ function TableSpec.check(self, obj, vres)
log("key '" .. ts(key) .. "' found and spec checking OK")
end
elseif not self.dict.__other and sealed then
-- unkown key, no __other and sealed -> err!
-- unknown key, no __other and sealed -> err!
add_msg(vres, "err", "illegal field '"..key.."' in sealed dict (value: "..tostring(entry)..")")
ret=false
elseif not self.dict[key] and is_a_valid_spec(entry, self.dict.__other) then
-- unknown key, but __other legitimizes entry
log("found matching spec in __other table")
elseif not self.dict[key] and not is_a_valid_spec(entry, self.dict.__other) then
-- unkown key AND __other does not legitimze: if unsealed ->
-- unknown key AND __other does not legitimze: if unsealed ->
-- fine. If sealed, report the errors of all checks.
if sealed then
-- gadd_msg(vres, "err", "checking __other failed for undeclared key '".. key.."' in sealed dict. Error(s) follow:")
Expand All @@ -386,7 +386,7 @@ function TableSpec.check(self, obj, vres)
log("checking __other for key "..key.. " failed")
ret=false
else
add_msg(vres, "inf", "ignoring unkown field "..key.." in unsealed dict")
add_msg(vres, "inf", "ignoring unknown field "..key.." in unsealed dict")
end
else error("should not get here") end
vres_pop_context(vres, depth)
Expand Down
2 changes: 1 addition & 1 deletion std_blocks/const/const.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static int const_init(ubx_block_t *b)
inf->type = ubx_type_get(b->nd, type_name);

if (inf->type == NULL) {
ubx_err(b, "unkown type %s", type_name);
ubx_err(b, "unknown type %s", type_name);
goto out_free;
}

Expand Down
2 changes: 1 addition & 1 deletion std_blocks/lfds_buffers/lfds_cyclic.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ int cyclic_init(ubx_block_t *i)
inf->type = ubx_type_get(i->nd, type_name);

if (inf->type == NULL) {
ubx_err(i, "EINVALID_CONFIG: unkown type %s", type_name);
ubx_err(i, "EINVALID_CONFIG: unknown type %s", type_name);
ret = EINVALID_CONFIG;
goto out_free_priv_data;
}
Expand Down
2 changes: 1 addition & 1 deletion std_blocks/trig/ptrig.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const char* schedpol_tostr(unsigned int schedpol)
case SCHED_IDLE: return "SCHED_IDLE";
case SCHED_BATCH: return "SCHED_BATCH";
default:
return "unkown";
return "unknown";
}
}

Expand Down

0 comments on commit 320bfdd

Please sign in to comment.