Skip to content

Commit 4fa5ea4

Browse files
A-Fellow-Comradeigaw
authored andcommitted
Plugin: ScaleFlux Spelling&Typo Fixes
Fixing spelling and typos Signed-off-by: Jayden Stenfort <[email protected]>
1 parent 25284c5 commit 4fa5ea4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

plugins/scaleflux/sfx-nvme.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static void show_sfx_smart_log_jsn(struct nvme_additional_smart_log *smart,
103103
struct json_object *root, *entry_stats, *dev_stats, *multi;
104104

105105
root = json_create_object();
106-
json_object_add_value_string(root, "Intel Smart log", devname);
106+
json_object_add_value_string(root, "ScaleFlux Smart log", devname);
107107

108108
dev_stats = json_create_object();
109109

@@ -232,7 +232,7 @@ static void show_sfx_smart_log_jsn(struct nvme_additional_smart_log *smart,
232232
json_object_add_value_object(root, "Device stats", dev_stats);
233233

234234
json_print_object(root, NULL);
235-
printf("/n");
235+
printf("\n");
236236
json_free_object(root);
237237
}
238238

@@ -577,7 +577,7 @@ static int get_bb_table(int fd, __u32 nsid, unsigned char *buf, __u64 size)
577577
/**
578578
* @brief display bb table
579579
*
580-
* @param bd_table buffer that contain bb table dumped from drvier
580+
* @param bd_table buffer that contain bb table dumped from driver
581581
* @param table_size buffer size (BYTES), should at least has 8 bytes for mf_bb_count and grown_bb_count
582582
*/
583583
static void bd_table_show(unsigned char *bd_table, __u64 table_size)
@@ -732,7 +732,7 @@ static int change_sanity_check(int fd, __u64 trg_in_4k, int *shrink)
732732
struct sysinfo s_info;
733733
__u64 mem_need = 0;
734734
__u64 cur_in_4k = 0;
735-
__u64 provisoned_cap_4k = 0;
735+
__u64 provisioned_cap_4k = 0;
736736
int extend = 0;
737737

738738
if (nvme_query_cap(fd, 0xffffffff, sizeof(freespace_ctx), &freespace_ctx))
@@ -741,21 +741,21 @@ static int change_sanity_check(int fd, __u64 trg_in_4k, int *shrink)
741741
/*
742742
* capacity illegal check
743743
*/
744-
provisoned_cap_4k = freespace_ctx.phy_space >>
744+
provisioned_cap_4k = freespace_ctx.phy_space >>
745745
(SFX_PAGE_SHIFT - SECTOR_SHIFT);
746-
if (trg_in_4k < provisoned_cap_4k ||
747-
trg_in_4k > ((__u64)provisoned_cap_4k * 4)) {
746+
if (trg_in_4k < provisioned_cap_4k ||
747+
trg_in_4k > ((__u64)provisioned_cap_4k * 4)) {
748748
fprintf(stderr,
749749
"WARNING: Only support 1.0~4.0 x provisioned capacity!\n");
750-
if (trg_in_4k < provisoned_cap_4k)
750+
if (trg_in_4k < provisioned_cap_4k)
751751
fprintf(stderr,
752752
"WARNING: The target capacity is less than 1.0 x provisioned capacity!\n");
753753
else
754754
fprintf(stderr,
755755
"WARNING: The target capacity is larger than 4.0 x provisioned capacity!\n");
756756
return -1;
757757
}
758-
if (trg_in_4k > ((__u64)provisoned_cap_4k*4)) {
758+
if (trg_in_4k > ((__u64)provisioned_cap_4k*4)) {
759759
fprintf(stderr, "WARNING: the target capacity is too large\n");
760760
return -1;
761761
}

0 commit comments

Comments
 (0)