Changeset 8848276 in mainline


Ignore:
Timestamp:
2015-03-15T15:02:18Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6934732
Parents:
a420203
Message:

avoid potentially unsafe use of a string literal

Location:
kernel/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/smpcall/smpcall1.c

    ra420203 r8848276  
    11/*
    2  * Copyright (c) 2012 Adam Hraska 
     2 * Copyright (c) 2012 Adam Hraska
    33 * All rights reserved.
    44 *
  • kernel/test/synch/rcu1.c

    ra420203 r8848276  
    698698                return true;
    699699        } else {
    700                 TPRINTF(err);
     700                TPRINTF("%s", err);
    701701                /* Leak a bit of mem. */
    702702                return false;
  • kernel/test/synch/workqueue2.c

    ra420203 r8848276  
    129129        res = test_custom_workq();
    130130        if (res) {
    131                 TPRINTF(res);
     131                TPRINTF("%s", res);
    132132                err = res;
    133133        }
     
    135135        res = test_custom_workq_stop();
    136136        if (res) {
    137                 TPRINTF(res);
     137                TPRINTF("%s", res);
    138138                err = res;
    139139        }
     
    141141        res = test_workqueue3();
    142142        if (res) {
    143                 TPRINTF(res);
     143                TPRINTF("%s", res);
    144144                err = res;
    145145        }
Note: See TracChangeset for help on using the changeset viewer.