- /* Can now submit "used" and "free" values.
- * 0x2D is the ASCII "-" character, after which the string
- * contains "<size>kB"
- * The string passed as param 3 to submit_hp is of the format:
- * <type>-<partial_type_inst>-<size>kB
- */
- assert(strncmp(info->d_name, "hugepages-", strlen("hugepages-")) == 0);
- strin = info->d_name += strlen("hugepages-");
-
- ssnprintf(type_instance, sizeof(type_instance), "%s-%s", partial_type_inst,
- strin);
+ ssnprintf(type_instance, sizeof(type_instance), "free_used-%zukB",
+ info->page_size_kb);