mirror of
https://github.com/qosmio/nss-packages.git
synced 2025-12-16 08:12:53 +00:00
To keep fork as closely synced with upstream, move NSS packages back into repository. Not sure why they were moved out from my original fork. * nss-firmware * qca-nss-crypto * qca-nss-cfi Removed the following: * mhz (already available in packages repo) * qrtr (unecessary, and has been broken for years) Also moved packages out of `qca` and back into root directory.
36 lines
1.0 KiB
Diff
36 lines
1.0 KiB
Diff
--- a/src/nssinfo.c
|
|
+++ b/src/nssinfo.c
|
|
@@ -160,7 +160,7 @@ void nssinfo_print_all(char *node, char
|
|
break;
|
|
}
|
|
|
|
- nssinfo_stats_print("%s_%-*s = %-20llu %-s\n",
|
|
+ nssinfo_stats_print("%s_%-*s = %-20lu %-s\n",
|
|
node, maxlen, stats_info[i].stats_name, stats_val[i], type);
|
|
}
|
|
}
|
|
@@ -277,12 +277,12 @@ void nssinfo_node_stats_destroy(pthread_
|
|
static char* nssinfo_add_comma(uint64_t num)
|
|
{
|
|
if (num < 1000) {
|
|
- snprintf(buf, sizeof(buf), "%llu", num);
|
|
+ snprintf(buf, sizeof(buf), "%lu", num);
|
|
return buf;
|
|
}
|
|
|
|
nssinfo_add_comma(num/1000);
|
|
- snprintf(buf + strlen(buf), sizeof(buf[NSSINFO_STR_LEN] + strlen(buf)), ",%03llu", num % 1000);
|
|
+ snprintf(buf + strlen(buf), sizeof(buf[NSSINFO_STR_LEN] + strlen(buf)), ",%03lu", num % 1000);
|
|
return buf;
|
|
}
|
|
|
|
@@ -293,7 +293,7 @@ static char* nssinfo_add_comma(uint64_t
|
|
static char* nssinfo_add_suffix(uint64_t num)
|
|
{
|
|
if (num < 1000) {
|
|
- snprintf(buf, sizeof(buf), "%llu", num);
|
|
+ snprintf(buf, sizeof(buf), "%lu", num);
|
|
return buf;
|
|
}
|
|
|