mraa.c: added user check into mraa_init() & increase verbosity
authorAlex Tereschenko <alext.mkrs@gmail.com>
Mon, 15 Dec 2014 21:40:57 +0000 (22:40 +0100)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 16 Dec 2014 20:33:30 +0000 (20:33 +0000)
commit083db5bd2782d5e0634eeaad42b76deb608e7621
treecd433b2b56491899bca171125315002606952bcd
parent4d8b82eedb6893c16b7de7af5e4f1305f26b068c
mraa.c: added user check into mraa_init() & increase verbosity

mraa_init() will now:
- print user name and EUID of the process instead of UID,
- print full platform text name in addition to numeric type,
- return, log and print an error if started by non-root user

Fixes #64

Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/mraa.c