aboutsummaryrefslogtreecommitdiffstats
path: root/tests/loggingrb
diff options
context:
space:
mode:
Diffstat (limited to 'tests/loggingrb')
-rw-r--r--tests/loggingrb/logging_test.err5
-rw-r--r--tests/loggingrb/loggingrb_test.c8
2 files changed, 5 insertions, 8 deletions
diff --git a/tests/loggingrb/logging_test.err b/tests/loggingrb/logging_test.err
index b59d2e83..e070561f 100644
--- a/tests/loggingrb/logging_test.err
+++ b/tests/loggingrb/logging_test.err
@@ -1,3 +1,2 @@
-You should see this
-You should see this
- \ No newline at end of file
+You should see this
+You should see this
diff --git a/tests/loggingrb/loggingrb_test.c b/tests/loggingrb/loggingrb_test.c
index 0b2ae5b5..fd11896a 100644
--- a/tests/loggingrb/loggingrb_test.c
+++ b/tests/loggingrb/loggingrb_test.c
@@ -14,10 +14,6 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
*/
#include <osmocom/core/logging.h>
@@ -64,7 +60,9 @@ int main(int argc, char **argv)
ringbuf_target = log_target_create_rb(0x1000);
log_add_target(ringbuf_target);
log_set_all_filter(ringbuf_target, 1);
- log_set_print_filename(ringbuf_target, 0);
+ log_set_print_filename2(ringbuf_target, LOG_FILENAME_NONE);
+ log_set_print_category(ringbuf_target, 0);
+ log_set_print_category_hex(ringbuf_target, 0);
log_parse_category_mask(ringbuf_target, "DRLL:DCC");
log_parse_category_mask(ringbuf_target, "DRLL");