Changeset 4234


Ignore:
Timestamp:
03/20/08 13:07:09 (5 years ago)
Author:
thomas
Message:

opkg: remove some printfs and replace with opkg_message where appropriate

Location:
trunk/src/target/opkg/libopkg
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/opkg/libopkg/opkg_configure.c

    r4204 r4234  
    3838    err = pkg_run_script(conf, pkg, "postinst", "configure"); 
    3939    if (err) { 
    40         printf("ERROR: %s.postinst returned %d\n", pkg->name, err); 
     40        opkg_message(conf, OPKG_ERROR, "ERROR: %s.postinst returned %d\n", pkg->name, err); 
    4141        return err; 
    4242    } 
  • trunk/src/target/opkg/libopkg/opkg_download.c

    r4210 r4234  
    183183        return -1; 
    184184 
    185     printf ("\n"); 
     185    /* if no custom progress handler was set, we need to clear the default progress bar */ 
     186    if (!opkg_cb_download_progress) 
     187        printf ("\n"); 
    186188 
    187189    err = file_move(tmp_file_location, dest_file_name); 
  • trunk/src/target/opkg/libopkg/opkg_remove.c

    r4097 r4234  
    205205      if (deps == 0) 
    206206      { 
    207         printf ("%s was autoinstalled but is now orphaned\n", buffer); 
     207         opkg_message (conf, OPKG_INFO, 
     208                       "%s was autoinstalled but is now orphaned\n", buffer); 
    208209         opkg_remove_pkg(conf, p,0); 
    209210      } 
    210211        else 
    211            printf ("%s was autoinstalled and is still required by %d installed packages\n", buffer, deps); 
     212           opkg_message (conf, OPKG_INFO, "%s was autoinstalled and is still required by " 
     213                         "%d installed packages\n", buffer, deps); 
    212214    } 
    213215    free (buffer); 
     
    273275 
    274276     if ( message==0 ){ 
    275          printf("Removing package %s from %s...\n", pkg->name, pkg->dest->name); 
     277         opkg_message (conf, OPKG_NOTICE, 
     278                       "Removing package %s from %s...\n", pkg->name, pkg->dest->name); 
    276279         fflush(stdout); 
    277280     } 
     
    350353                  space. */ 
    351354               if (conffile_has_been_modified(conf, conffile)) { 
    352                     printf("  not deleting modified conffile %s\n", file_name); 
     355                    opkg_message (conf, OPKG_NOTICE, 
     356                                  "  not deleting modified conffile %s\n", file_name); 
    353357                    fflush(stdout); 
    354358                    continue; 
Note: See TracChangeset for help on using the changeset viewer.