What kind of debug output statement is valid in getaddrinfo.c?

by 鎹疯秴 鐜 » Fri, 20 May 2011 17:17:53 GMT

Sponsored Links
 Hi, developers:

I am currently developing an IPv6 DNS resolver on Android-x86 platform
in socket programming in C so I would like to modify some code in /
home/ubuntu/android-x86/bionic/libc/netbsd/net/getaddrinfo.c". I want
to do debugging in this file so I am trying to adding debug output
statements in this file.

I 've tried "LOGE", "printf" and "fprintf" but none of them works.
Is there anyone knows what kind of debug output statement is valid in
this file? Thank you very much!!

Best wishes,

Jiechao Wang


Other Threads

1. Self contained ProgressDialog in ListFragment?

I have a ListFragment which loads data in a background thread and shows a
ProgressDialog while it loads. I'm wondering if I can make that dialog
contained to just that fragment so the user can keep doing things in the
other fragments. Is this doable?  Currently, the dialog blocks all
interaction with the UI.

Chris Stewart


2. What is the correct way to pause AudioTrack?

I wrote the following code to experiment with the AudioTrack class but
whenever I click the pause button it seems to "REWIND" the track
rather than pause it, am I doing something wrong?
private class PlayAudio extends AsyncTask<Void, Void, Void> implements
                        OnPlaybackPositionUpdateListener {
                AudioTrack audioTrack;
                boolean keepGoing = true;

                boolean speed = false;

                protected Void doInBackground(Void... params) {
                        int bufferSize = AudioTrack.getMinBufferSize(frequency,
                                        channelConfiguration, audioEncoding);

                        audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, 
                                        channelConfiguration, audioEncoding, 

                        audiodata = fillBuff(myAudio);



                        // This while block ensures that a buffer is 
                        while (keepGoing) {
                                audioTrack.write(audiodata, 0, 

                        return null;

                public void onMarkerReached(AudioTrack track) {


                public void onPeriodicNotification(AudioTrack track) {


                protected void onPostExecute(Void result) {


public void onClick(View v) {
                int id = v.getId();
        if (id == R.id.PausePlaybackButton) {
                        // playTask.maKorin = false;





3. StartActivity and InstantiationException

4. galaxy 5 kadang restart klo pas lg maen HEAVY GUNNER

5. Nubie minta izin.

6. Scanner GPRS

7. [WTA] most oprekable android