Fix some typos

Fix typos and common misspellings in code comments and log messages.

Change-Id: Ie66b89065f2100c1d2125ce5a6c9b1d58df7c8ad
diff --git a/src/libvlr/vlr.c b/src/libvlr/vlr.c
index ca6f90d..0f9c991 100644
--- a/src/libvlr/vlr.c
+++ b/src/libvlr/vlr.c
@@ -360,7 +360,7 @@
 }
 
 /* Find subscriber by IMSI, or create new subscriber if not found.
- * \param[in] vlr  VLR instace.
+ * \param[in] vlr  VLR instance.
  * \param[in] imsi  IMSI string.
  * \param[out] created  if non-NULL, returns whether a new entry was created. */
 struct vlr_subscr *_vlr_subscr_find_or_create_by_imsi(struct vlr_instance *vlr,
@@ -390,7 +390,7 @@
 }
 
 /* Find subscriber by TMSI, or create new subscriber if not found.
- * \param[in] vlr  VLR instace.
+ * \param[in] vlr  VLR instance.
  * \param[in] tmsi  TMSI.
  * \param[out] created  if non-NULL, returns whether a new entry was created. */
 struct vlr_subscr *_vlr_subscr_find_or_create_by_tmsi(struct vlr_instance *vlr,
@@ -730,7 +730,7 @@
 
 		if (key_seq >= ARRAY_SIZE(vsub->auth_tuples)) {
 			LOGVSUBP(LOGL_NOTICE, vsub,
-				"Skipping auth tuple wih invalid cksn %zu\n",
+				"Skipping auth tuple with invalid cksn %zu\n",
 				key_seq);
 			continue;
 		}
diff --git a/src/libvlr/vlr_auth_fsm.c b/src/libvlr/vlr_auth_fsm.c
index 036c3d7..dcdf584 100644
--- a/src/libvlr/vlr_auth_fsm.c
+++ b/src/libvlr/vlr_auth_fsm.c
@@ -1,4 +1,4 @@
-/* Osmocom Visitor Location Register (VLR) Autentication FSM */
+/* Osmocom Visitor Location Register (VLR) Authentication FSM */
 
 /* (C) 2016 by Harald Welte <laforge@gnumonks.org>
  *
diff --git a/src/libvlr/vlr_lu_fsm.c b/src/libvlr/vlr_lu_fsm.c
index 2db5711..e4d40f0 100644
--- a/src/libvlr/vlr_lu_fsm.c
+++ b/src/libvlr/vlr_lu_fsm.c
@@ -688,7 +688,7 @@
 static bool lai_in_this_vlr(struct vlr_instance *vlr,
 			    const struct osmo_location_area_id *lai)
 {
-	/* TODO: VLR needs to keep a locally configued list of LAIs */
+	/* TODO: VLR needs to keep a locally configured list of LAIs */
 	return true;
 }
 
diff --git a/src/libvlr/vlr_sgs.c b/src/libvlr/vlr_sgs.c
index 452de2c..269dda6 100644
--- a/src/libvlr/vlr_sgs.c
+++ b/src/libvlr/vlr_sgs.c
@@ -44,7 +44,7 @@
 };
 
 /* Reset all SGs-Associations back to zero.
- * \param[in] vlr VLR instace. */
+ * \param[in] vlr VLR instance. */
 void vlr_sgs_reset(struct vlr_instance *vlr)
 {
 	struct vlr_subscr *vsub;
@@ -59,11 +59,11 @@
 }
 
 /*! Perform an SGs location update.
- * \param[in] vlr VLR instace.
+ * \param[in] vlr VLR instance.
  * \param[in] cfg SGs interface configuration parameters.
- * \param[in] response_cb calback function that is called when LU is done.
- * \param[in] paging_cb calback function that is called when LU needs to page.
- * \param[in] mminfo_cb calback function that is called to provide MM info to the UE.
+ * \param[in] response_cb callback function that is called when LU is done.
+ * \param[in] paging_cb callback function that is called when LU needs to page.
+ * \param[in] mminfo_cb callback function that is called to provide MM info to the UE.
  * \param[in] mme_name fqdn of the requesting MME (mme-name).
  * \param[in] type location update type (normal or IMSI attach).
  * \param[in] imsi mobile identity (IMSI).
@@ -299,7 +299,7 @@
 {
 	struct vlr_subscr *vsub = arg;
 
-	/* 3GPP TS 29.118 does not specify a specif action that has to happen
+	/* 3GPP TS 29.118 does not specify a specific action that has to happen
 	 * in case Ts5 times out. The timeout just indicates that the paging
 	 * failed. Other actions may check the status of Ts5 to see if a paging
 	 * is still ongoing or not. */
@@ -327,7 +327,7 @@
 	/* Note: 3GPP TS 29.118, chapter 4.2.2 mentions paging in the FSM
 	 * diagram, but paging never causes a state transition except when
 	 * an explicit failure is indicated (MME actively rejects paging).
-	 * Apparantly it is also possible that an LU happens while the paging
+	 * Apparently it is also possible that an LU happens while the paging
 	 * is still ongoing and Ts5 is running. (chapter 5.1.2.3). This means
 	 * that the paging procedure is intended to run in parallel to the
 	 * SGs FSM and given that the benaviour around Ts5 must be implemented
diff --git a/src/libvlr/vlr_sgs_fsm.c b/src/libvlr/vlr_sgs_fsm.c
index 49ad09a..a131b7e 100644
--- a/src/libvlr/vlr_sgs_fsm.c
+++ b/src/libvlr/vlr_sgs_fsm.c
@@ -54,7 +54,7 @@
 	struct vlr_subscr *vsub = fi->priv;
 	osmo_fsm_inst_state_chg(fi, SGS_UE_ST_NULL, 0, 0);
 
-	/* Note: This is only relevent for cases where we are in the middle
+	/* Note: This is only relevant for cases where we are in the middle
 	 * of an TMSI reallocation procedure. Should a failure of some sort
 	 * put us to NULL state, we have to free the pending TMSI */
 	vsub->tmsi_new = GSM_RESERVED_TMSI;
@@ -156,7 +156,7 @@
 		/* Check if we expect a TMSI REALLOCATION COMPLETE message from the MME
 		 * by checking the tmsi_new flag. If this flag is not GSM_RESERVED_TMSI
 		 * we know that we have a TMSI pending and need to wait for the MME
-		 * to acknowlege first */
+		 * to acknowledge first */
 		if (vsub->tmsi_new != GSM_RESERVED_TMSI) {
 			osmo_fsm_inst_state_chg(fi, SGS_UE_ST_ASSOCIATED, vsub->sgs.cfg.timer[SGS_STATE_TS6_2],
 						SGS_STATE_TS6_2);
@@ -355,7 +355,7 @@
 	.event_names = sgs_ue_fsm_event_names,
 };
 
-/*! Initalize/Register SGs FSM in osmo-fsm subsystem */
+/*! Initialize/Register SGs FSM in osmo-fsm subsystem */
 void vlr_sgs_fsm_init(void)
 {
 	if (osmo_fsm_find_by_name(sgs_ue_fsm.name) != &sgs_ue_fsm)