From 1fef3835c915ad93a8f0522d901505be5508e6b6 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Tue, 9 Jul 2024 14:44:56 +0200 Subject: [PATCH] Fix common typo: unkown -> unknown --- src/osdi/osdicallbacks.c | 2 +- src/osdi/osdiregistry.c | 2 +- src/osdi/osdisetup.c | 18 +++++++++--------- src/spicelib/devices/hisim2/hsm2eval.c | 2 +- src/spicelib/devices/hisimhv1/hsmhveval.c | 2 +- src/spicelib/devices/hisimhv2/hsmhv2eval.c | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/osdi/osdicallbacks.c b/src/osdi/osdicallbacks.c index de7b1dc97..6669133b8 100644 --- a/src/osdi/osdicallbacks.c +++ b/src/osdi/osdicallbacks.c @@ -27,7 +27,7 @@ void osdi_log(void *handle_, char *msg, uint32_t lvl) { dst = stderr; break; default: - fprintf(stderr, "OSDI(unkown) %s", handle->name); + fprintf(stderr, "OSDI(unknown) %s", handle->name); break; } diff --git a/src/osdi/osdiregistry.c b/src/osdi/osdiregistry.c index cbab2624b..9a9dd114a 100644 --- a/src/osdi/osdiregistry.c +++ b/src/osdi/osdiregistry.c @@ -411,7 +411,7 @@ extern OsdiObjectFile load_object_file(const char *input) { IS_LIM_FUN("fetlim", 1, osdi_fetlim) IS_LIM_FUN("limitlog", 1, osdi_limitlog) if (expected_args == -1) { - printf("warning(osdi): unkown $limit function \"%s\"", lim_table[i].name); + printf("warning(osdi): unknown $limit function \"%s\"", lim_table[i].name); } else { printf("warning(osdi): unexpected number of arguments %i (expected %i) " "for \"%s\", ignoring...", diff --git a/src/osdi/osdisetup.c b/src/osdi/osdisetup.c index 77860e21f..4feb3ec90 100644 --- a/src/osdi/osdisetup.c +++ b/src/osdi/osdisetup.c @@ -162,10 +162,10 @@ static int init_matrix(SMPmatrix *matrix, const OsdiDescriptor *descr, for (uint32_t i = 0; i < descr->num_jacobian_entries; i++) { uint32_t equation = descr->jacobian_entries[i].nodes.node_1; - uint32_t unkown = descr->jacobian_entries[i].nodes.node_2; + uint32_t unknown = descr->jacobian_entries[i].nodes.node_2; equation = node_mapping[equation]; - unkown = node_mapping[unkown]; - double *ptr = SMPmakeElt(matrix, (int)equation, (int)unkown); + unknown = node_mapping[unknown]; + double *ptr = SMPmakeElt(matrix, (int)equation, (int)unknown); if (ptr == NULL) { return (E_NOMEM); @@ -424,10 +424,10 @@ static int init_matrix_klu(SMPmatrix *matrix, const OsdiDescriptor *descr, for (uint32_t i = 0; i < descr->num_jacobian_entries; i++) { uint32_t equation = descr->jacobian_entries[i].nodes.node_1; - uint32_t unkown = descr->jacobian_entries[i].nodes.node_2; + uint32_t unknown = descr->jacobian_entries[i].nodes.node_2; equation = node_mapping[equation]; - unkown = node_mapping[unkown]; - if (equation != 0 && unkown != 0) { + unknown = node_mapping[unknown]; + if (equation != 0 && unknown != 0) { tmp.COO = jacobian_ptr_resist[i]; tmp.CSC = NULL; tmp.CSC_Complex = NULL; @@ -461,10 +461,10 @@ static int update_matrix_klu(const OsdiDescriptor *descr, void *inst, for (uint32_t i = 0; i < descr->num_jacobian_entries; i++) { uint32_t equation = descr->jacobian_entries[i].nodes.node_1; - uint32_t unkown = descr->jacobian_entries[i].nodes.node_2; + uint32_t unknown = descr->jacobian_entries[i].nodes.node_2; equation = node_mapping[equation]; - unkown = node_mapping[unkown]; - if (equation != 0 && unkown != 0) { + unknown = node_mapping[unknown]; + if (equation != 0 && unknown != 0) { jacobian_ptr_resist[i] = inst_matrix_ptrs[2 * i + complex]; } } diff --git a/src/spicelib/devices/hisim2/hsm2eval.c b/src/spicelib/devices/hisim2/hsm2eval.c index 87fa9ce5e..e8a721938 100644 --- a/src/spicelib/devices/hisim2/hsm2eval.c +++ b/src/spicelib/devices/hisim2/hsm2eval.c @@ -3189,7 +3189,7 @@ while( START_OF_SCE_LOOP ) { /* Begin: 1st SCE LOOP */ * - Psa : Analytical solution of * Cox( Vgp - Psa ) = cnst0 * Qacc * where Qacc is the 3-degree series of (fdep)^{1/2}. - * The unkown is transformed to Chi=beta(Ps0-Vbs). + * The unknown is transformed to Chi=beta(Ps0-Vbs). * - Ps0_min : |Ps0_min| when Vbs=0. *-----------------*/ diff --git a/src/spicelib/devices/hisimhv1/hsmhveval.c b/src/spicelib/devices/hisimhv1/hsmhveval.c index 9c4df2feb..4f166b8eb 100644 --- a/src/spicelib/devices/hisimhv1/hsmhveval.c +++ b/src/spicelib/devices/hisimhv1/hsmhveval.c @@ -2137,7 +2137,7 @@ int HSMHVevaluate * - Psa : Analytical solution of * Cox( Vgp - Psa ) = cnst0 * Qacc * where Qacc is the 3-degree series of (fdep)^{1/2}. - * The unkown is transformed to Chi=beta(Ps0-Vbs). + * The unknown is transformed to Chi=beta(Ps0-Vbs). * - Ps0_min : |Ps0_min| when Vbs=0. *-----------------*/ Ps0_min = here->HSMHV_eg - Pb2 ; diff --git a/src/spicelib/devices/hisimhv2/hsmhv2eval.c b/src/spicelib/devices/hisimhv2/hsmhv2eval.c index cda4d0e88..1d050a60a 100644 --- a/src/spicelib/devices/hisimhv2/hsmhv2eval.c +++ b/src/spicelib/devices/hisimhv2/hsmhv2eval.c @@ -2067,7 +2067,7 @@ int HSMHV2evaluate * - Psa : Analytical solution of * Cox( Vgp - Psa ) = cnst0 * Qacc * where Qacc is the 3-degree series of (fdep)^{1/2}. - * The unkown is transformed to Chi=beta(Ps0-Vbs). + * The unknown is transformed to Chi=beta(Ps0-Vbs). * - Ps0_min : |Ps0_min| when Vbs=0. *-----------------*/ /* Ps0_min: approx. solution of Poisson equation at Vgs_min */