Skip to content

Commit 952a519

Browse files
Allow for longer CPU names (#320)
Increase CPUINFO_PACKAGE_NAME_MAX to allow for longer strings, such as "Snapdragon® X Elite - X1E78100 - Qualcomm® Oryon™ CPU", which is 53 characters and WideCharToMultiByte converts to a 57 byte string.
1 parent f1f25cb commit 952a519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cpuinfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ struct cpuinfo_cluster {
736736
uint64_t frequency;
737737
};
738738

739-
#define CPUINFO_PACKAGE_NAME_MAX 48
739+
#define CPUINFO_PACKAGE_NAME_MAX 64
740740

741741
struct cpuinfo_package {
742742
/** SoC or processor chip model name */

0 commit comments

Comments
 (0)