a few typo fixes

Signed-off-by: David Lee <live4thee@gmail.com>
This commit is contained in:
David Lee 2022-09-09 13:25:17 +08:00
parent 15c2986b8d
commit d6b0fbceac
2 changed files with 4 additions and 4 deletions

View File

@ -94,7 +94,7 @@ int initialize_cache(ocf_ctx_t ctx, ocf_cache_t *cache)
ocf_mngt_cache_config_set_default(&cache_cfg); ocf_mngt_cache_config_set_default(&cache_cfg);
cache_cfg.metadata_volatile = true; cache_cfg.metadata_volatile = true;
/* Cache deivce (volume) configuration */ /* Cache device (volume) configuration */
type = ocf_ctx_get_volume_type(ctx, VOL_TYPE); type = ocf_ctx_get_volume_type(ctx, VOL_TYPE);
ret = ocf_uuid_set_str(&uuid, "cache"); ret = ocf_uuid_set_str(&uuid, "cache");
if (ret) if (ret)
@ -260,7 +260,7 @@ void complete_read(struct ocf_io *io, int error)
{ {
struct volume_data *data = ocf_io_get_data(io); struct volume_data *data = ocf_io_get_data(io);
printf("WRITE COMPLETE (error: %d)\n", error); printf("READ COMPLETE (error: %d)\n", error);
printf("DATA: \"%s\"\n", (char *)data->ptr); printf("DATA: \"%s\"\n", (char *)data->ptr);
/* Free data buffer and io */ /* Free data buffer and io */

View File

@ -445,9 +445,9 @@ struct ocf_mngt_cache_attach_config {
}; };
/** /**
* @brief Initialize core config to default values * @brief Initialize attach config to default values
* *
* @note This function doesn't initiialize uuid and volume_type fields * @note This function doesn't initialize uuid and volume_type fields
* which have no default values and are required to be set by user. * which have no default values and are required to be set by user.
* *
* @param[in] cfg Cache device config stucture * @param[in] cfg Cache device config stucture