POSIX: Fixed output for list_topics, list_devices, etc

Removed extra carriage returns in output strings

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2015-06-02 00:59:10 -07:00
parent 5e95b83eff
commit b4152f3daa
2 changed files with 6 additions and 6 deletions

View File

@ -476,10 +476,10 @@ VDev *VDev::getDev(const char *path)
void VDev::showDevices()
{
int i=0;
PX4_INFO("Devices:\n");
PX4_INFO("Devices:");
for (; i<PX4_MAX_DEV; ++i) {
if (devmap[i] && strncmp(devmap[i]->name, "/dev/", 5) == 0) {
PX4_INFO(" %s\n", devmap[i]->name);
PX4_INFO(" %s", devmap[i]->name);
}
}
}
@ -487,10 +487,10 @@ void VDev::showDevices()
void VDev::showTopics()
{
int i=0;
PX4_INFO("Devices:\n");
PX4_INFO("Devices:");
for (; i<PX4_MAX_DEV; ++i) {
if (devmap[i] && strncmp(devmap[i]->name, "/obj/", 5) == 0) {
PX4_INFO(" %s\n", devmap[i]->name);
PX4_INFO(" %s", devmap[i]->name);
}
}
}
@ -498,11 +498,11 @@ void VDev::showTopics()
void VDev::showFiles()
{
int i=0;
PX4_INFO("Files:\n");
PX4_INFO("Files:");
for (; i<PX4_MAX_DEV; ++i) {
if (devmap[i] && strncmp(devmap[i]->name, "/obj/", 5) != 0 &&
strncmp(devmap[i]->name, "/dev/", 5) != 0) {
PX4_INFO(" %s\n", devmap[i]->name);
PX4_INFO(" %s", devmap[i]->name);
}
}
}