Project

General

Profile

nice_logs.patch

Needed on top of Alex Badeas patches for o2-osmocom-bb-smscb2kml.pl - roox, 02/07/2018 08:32 PM

View differences:

src/host/layer23/src/misc/cell_log.c
784 784
	struct tlv_parsed tv;
785 785
	struct rsl_ie_cb_cmd_type *cmd_type;
786 786
	struct gsm341_ms_message *cbmsg;
787
	struct gsm48_sysinfo *s = &sysinfo;
787 788
	unsigned int cbmsglen;
788 789
	char buf[256], *p;
789 790

  
......
832 833
		ntohs(cbmsg->msg_id),
833 834
		cbmsg->page.current, cbmsg->page.total);
834 835
	LOGFILE("text \"%s\"\n", buf);
836
	time_t now;
837
	time(&now);
838
	LOGFILE("CellBroadcast: TIME=%lu ARFCN=%d MCC=%s MNC=%s LAC=0x%04x CID=0x%04x CB=\"%s\"\n",
839
		now, arfcn, gsm_print_mcc(s->mcc), gsm_print_mnc(s->mnc), s->lac, s->cell_id, buf);
835 840
	LOGFILE("\n");
836 841
	LOGFLUSH();
Add picture from clipboard (Maximum size: 48.8 MB)