|
@@ -1042,8 +1042,8 @@ static int bpf_map_find_btf_info(struct bpf_map *map, const struct btf *btf)
|
|
|
}
|
|
|
|
|
|
if (def->key_size != key_size) {
|
|
|
- pr_warning("map:%s key_type:%s has BTF type_size:%ld != key_size:%u\n",
|
|
|
- map->name, name, key_size, def->key_size);
|
|
|
+ pr_warning("map:%s key_type:%s has BTF type_size:%u != key_size:%u\n",
|
|
|
+ map->name, name, (unsigned int)key_size, def->key_size);
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
@@ -1069,8 +1069,8 @@ static int bpf_map_find_btf_info(struct bpf_map *map, const struct btf *btf)
|
|
|
}
|
|
|
|
|
|
if (def->value_size != value_size) {
|
|
|
- pr_warning("map:%s value_type:%s has BTF type_size:%ld != value_size:%u\n",
|
|
|
- map->name, name, value_size, def->value_size);
|
|
|
+ pr_warning("map:%s value_type:%s has BTF type_size:%u != value_size:%u\n",
|
|
|
+ map->name, name, (unsigned int)value_size, def->value_size);
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|