Change in ...osmo-pcu[master]: encoding: fix space, tabs

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Tue Oct 8 23:33:37 UTC 2019


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/15717


Change subject: encoding: fix space, tabs
......................................................................

encoding: fix space, tabs

Change-Id: I80ac88f50bfedfd2b86d548883313b5a187b1e8f
---
M src/encoding.cpp
1 file changed, 30 insertions(+), 30 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/17/15717/1

diff --git a/src/encoding.cpp b/src/encoding.cpp
index 8270354..b46f568 100644
--- a/src/encoding.cpp
+++ b/src/encoding.cpp
@@ -96,21 +96,21 @@
 */
 static int write_tfi_usf(bitvec *dest, const gprs_rlcmac_ul_tbf *tbf, uint8_t usf)
 {
-       int rc = bitvec_set_u64(dest, tbf->tfi(), 5, false); /* TFI_ASSIGNMENT */
-       CHECK(rc);
+	int rc = bitvec_set_u64(dest, tbf->tfi(), 5, false); /* TFI_ASSIGNMENT */
+	CHECK(rc);
 
-       SET_0(dest); /* POLLING -- no action is required from MS */
+	SET_0(dest); /* POLLING -- no action is required from MS */
 
-       SET_0(dest);
+	SET_0(dest);
 
-       rc = bitvec_set_u64(dest, usf, 3, false); /* USF */
-       CHECK(rc);
+	rc = bitvec_set_u64(dest, usf, 3, false); /* USF */
+	CHECK(rc);
 
-       SET_0(dest); /* USF_GRANULARITY -- the mobile station shall transmit one RLC/MAC block */
+	SET_0(dest); /* USF_GRANULARITY -- the mobile station shall transmit one RLC/MAC block */
 
-       SET_0(dest); /* No P0 nor PR_MODE */
+	SET_0(dest); /* No P0 nor PR_MODE */
 
-       return 0;
+	return 0;
 }
 
 /* { 0 | 1 < TIMING_ADVANCE_INDEX : bit (4) > } */
@@ -201,11 +201,11 @@
 	rc = write_alpha_gamma(dest, alpha, gamma);
 	CHECK(rc);
 
-	rc = bitvec_set_bit(dest, (bit_value)polling); /* POLLING */
+	rc = bitvec_set_bit(dest, (bit_value) polling); /* POLLING */
 	CHECK(rc);
 
 	/* N. B: NOT related to TAI! */
-	rc = bitvec_set_bit(dest, (bit_value)ta_valid); /* TA_VALID */
+	rc = bitvec_set_bit(dest, (bit_value) ta_valid); /* TA_VALID */
 	CHECK(rc);
 
 	rc = write_ta_index(dest, ta_idx);
@@ -215,7 +215,7 @@
 		SET_1(dest);
 		rc = write_tbf_start_time(dest, fn);
 		CHECK(rc);
-       } else
+	} else
 		SET_0(dest);
 
 	SET_0(dest); /* No P0 nor PR_MODE */
@@ -225,7 +225,7 @@
 		rc = bitvec_set_u64(dest, enc_ws(tbf->window_size()), 5, false); /* EGPRS Window Size */
 		CHECK(rc);
 
-               /* The mobile station shall not report measurements: (see 3GPP TS 44.060 Table 11.2.7.1) */
+		/* The mobile station shall not report measurements: (see 3GPP TS 44.060 Table 11.2.7.1) */
 		SET_0(dest); SET_0(dest); /* LINK_QUALITY_MEASUREMENT_MODE */
 		SET_1(dest);              /* No BEP_PERIOD2 */
 	} else
@@ -867,16 +867,16 @@
 	/* static size of 16 bits
 	 ..1. .... = ACKNACK:  (Union)
 	    0 0000 000 Length
-        Desc
-
-            ...0 .... = FINAL_ACK_INDICATION: False
-
-            .... 1... = BEGINNING_OF_WINDOW: 1
-
-            .... .1.. = END_OF_WINDOW: 1
-
-            .... ..10  0101 0001  1... .... = STARTING_SEQUENCE_NUMBER: 1187
-
+	Desc
+	
+	    ...0 .... = FINAL_ACK_INDICATION: False
+	
+	    .... 1... = BEGINNING_OF_WINDOW: 1
+	
+	    .... .1.. = END_OF_WINDOW: 1
+	
+	    .... ..10  0101 0001  1... .... = STARTING_SEQUENCE_NUMBER: 1187
+	
 	    .0.. .... = CRBB Exist: 0
 	minimal size is 24 rest_bits */
 	rest_bits -= 24;
@@ -1051,15 +1051,15 @@
 {
 	unsigned wp = 0;
 
-	bitvec_write_field(dest, &wp,0x1,2);  // Payload Type
-	bitvec_write_field(dest, &wp,0x0,3);  // No polling
-	bitvec_write_field(dest, &wp,0x0,3);  // Uplink state flag
-	bitvec_write_field(dest, &wp,0x22,6);  // MESSAGE TYPE
+	bitvec_write_field(dest, &wp, 0x1, 2);  // Payload Type
+	bitvec_write_field(dest, &wp, 0x0, 3);  // No polling
+	bitvec_write_field(dest, &wp, 0x0, 3);  // Uplink state flag
+	bitvec_write_field(dest, &wp, 0x22, 6);  // MESSAGE TYPE
 
-	bitvec_write_field(dest, &wp,0x0,2);  // Page Mode
+	bitvec_write_field(dest, &wp, 0x0, 2);  // Page Mode
 
-	bitvec_write_field(dest, &wp,0x0,1);  // No PERSISTENCE_LEVEL
-	bitvec_write_field(dest, &wp,0x0,1);  // No NLN
+	bitvec_write_field(dest, &wp, 0x0, 1);  // No PERSISTENCE_LEVEL
+	bitvec_write_field(dest, &wp, 0x0, 1);  // No NLN
 
 	return wp;
 }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/15717
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I80ac88f50bfedfd2b86d548883313b5a187b1e8f
Gerrit-Change-Number: 15717
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191008/88ea5f2d/attachment.htm>


More information about the gerrit-log mailing list