Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDKBDEV-2828: fix line endings in printf strings #214

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions sampleapps/consumer/rbusRawDataConsumer.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ static void generalEvent1Handler(
{
(void)handle;
(void)subscription;
printf("\nevent_receive_handler1 called\n\r");
printf("Event received %s\n\r", event->name);
printf("Event data: %s\n\r", (char*)event->rawData);
printf("Event data len: %d\n\r", event->rawDataLen);
printf("\n\r");
printf("\nevent_receive_handler1 called\r\n");
printf("Event received %s\r\n", event->name);
printf("Event data: %s\r\n", (char*)event->rawData);
printf("Event data len: %d\r\n", event->rawDataLen);
printf("\r\n");
}

int main(int argc, char *argv[])
Expand Down Expand Up @@ -71,7 +71,7 @@ int main(int argc, char *argv[])
rc = rbus_openDirect(handle, &directHandle, "Device.Provider1.Event1!");
if (RBUS_ERROR_SUCCESS != rc)
{
printf ("Failed to open direct connection to %s\n\r", "Device.Provider1.Event1!");
printf ("Failed to open direct connection to %s\r\n", "Device.Provider1.Event1!");
}
else
{
Expand Down Expand Up @@ -116,7 +116,7 @@ int main(int argc, char *argv[])
rc = rbus_closeDirect(directHandle);
if (RBUS_ERROR_SUCCESS != rc)
{
printf ("Failed to close direct connection to %s\n\r", "Device.Provider1.Event1!");
printf ("Failed to close direct connection to %s\r\n", "Device.Provider1.Event1!");
}
}
rbusEvent_UnsubscribeExRawData(handle, subscriptions, 1);
Expand Down
2 changes: 1 addition & 1 deletion sampleapps/consumer/rbusSampleConsumer.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ int main(int argc, char *argv[])
else
{
rbusProperty_t next = outputVals;
printf ("List of params\n\r");
printf ("List of params\r\n");
for (int i = 0; i < numOfOutVals; i++)
{
rbusValue_t val = rbusProperty_GetValue(next);
Expand Down
2 changes: 1 addition & 1 deletion src/rbus/rbus_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ void rbusObject_fwrite(rbusObject_t obj, int depth, FILE* fout)
VERIFY_NULL(fout);
for(i=0; i<depth; ++i)
fprintf(fout, " ");
fprintf(fout, "rbusObject name=%s\n\r", rbusObject_GetName(obj));
fprintf(fout, "rbusObject name=%s\r\n", rbusObject_GetName(obj));
prop = rbusObject_GetProperties(obj);
VERIFY_NULL(prop);
rbusProperty_fwrite(prop, depth+1, fout);
Expand Down
4 changes: 2 additions & 2 deletions src/rbus/rbus_property.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ void rbusProperty_fwrite(rbusProperty_t prop, int depth, FILE* fout)
VERIFY_NULL(fout);
for(i=0; i<depth; ++i)
fprintf(fout, " ");
fprintf(fout, "rbusProperty name=%s\n\r", rbusProperty_GetName(prop));
fprintf(fout, "rbusProperty name=%s\r\n", rbusProperty_GetName(prop));
rbusValue_fwrite(rbusProperty_GetValue(prop), depth+1, fout);
fprintf(fout,"\n\r");
fprintf(fout,"\r\n");
prop = rbusProperty_GetNext(prop);
if(prop)
rbusProperty_fwrite(prop, depth, fout);
Expand Down
Loading
Loading