Changeset 244 in flair-src for trunk/tools/FlairGCS/src/main.cpp


Ignore:
Timestamp:
05/24/18 11:45:33 (4 years ago)
Author:
Sanahuja Guillaume
Message:

modifs segfault when closing connection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/FlairGCS/src/main.cpp

    r234 r244  
    4646  int nentries;
    4747
    48   printf("Segmentation fault:\n");
     48  fprintf(stderr,"Segmentation fault:\n");
    4949  /* Dump a backtrace of the frame which caused the segfault: */
    5050  nentries = backtrace(bt, sizeof(bt) / sizeof(bt[0]));
     
    6262
    6363  if (bint.c[0] == 1) {
    64     printf("error, ground station is only compatible with little endian\n");
     64    fprintf(stderr,"error, ground station is only compatible with little endian\n");
    6565    return -1;
    6666  }
     
    7272
    7373  parseOptions(argc, argv);
    74   printf("listening on port %i\n", port);
     74  fprintf(stderr,"listening on port %i\n", port);
    7575
    7676  qRegisterMetaType<const char *>("const char*");
Note: See TracChangeset for help on using the changeset viewer.